Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

TDataStd_TreeNode Class Reference

#include <TDataStd_TreeNode.hxx>

Inheritance diagram for TDataStd_TreeNode:

TDF_Attribute MMgt_TShared Standard_Transient

List of all members.


Detailed Description

Allows you to define an explicit tree of labels
which you can also edit.
Without this class, the data structure cannot be fully edited.
This service is required if for presentation
purposes, you want to create an application with
a tree which allows you to organize and link data
as a function of application features.

Definition at line 79 of file TDataStd_TreeNode.hxx.


Public Member Functions

Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)&other) const
virtual Standard_EXPORT void AfterAddition ()
 Connect the TreeNode to its father child list
.
virtual Standard_EXPORT void AfterResume ()
 Reconnect the TreeNode to its father child list.
.
virtual Standard_EXPORT
Standard_Boolean 
AfterRetrieval (const Standard_Boolean forceIt=Standard_False)
virtual Standard_EXPORT
Standard_Boolean 
AfterUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False)
Standard_EXPORT Standard_Boolean Append (const Handle(TDataStd_TreeNode)&Child)
Standard_EXPORT void Backup ()
virtual Standard_EXPORT
Handle_TDF_Attribute 
BackupCopy () const
virtual Standard_EXPORT void BeforeCommitTransaction ()
virtual Standard_EXPORT void BeforeForget ()
 Disconnect the TreeNode from its Father child list
.
virtual Standard_EXPORT void BeforeRemoval ()
virtual Standard_EXPORT
Standard_Boolean 
BeforeUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False)
 Disconnect the TreeNode, if necessary.
.
virtual Standard_EXPORT void Delete () const
 Memory deallocator for transient classes.
virtual Standard_EXPORT
Handle_TDF_DeltaOnAddition 
DeltaOnAddition () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnForget 
DeltaOnForget () const
virtual Standard_EXPORT void DeltaOnModification (const Handle(TDF_DeltaOnModification)&aDelta)
 Applies a DeltaOnModification to <me>.
.
virtual Standard_EXPORT
Handle_TDF_DeltaOnModification 
DeltaOnModification (const Handle(TDF_Attribute)&anOldAttribute) const
virtual Standard_EXPORT
Handle_TDF_DeltaOnRemoval 
DeltaOnRemoval () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnResume 
DeltaOnResume () const
Standard_EXPORT Standard_Integer Depth () const
virtual Standard_EXPORT
Standard_OStream & 
Dump (Standard_OStream &anOS) const
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT void ExtendedDump (Standard_OStream &anOS, const TDF_IDFilter &aFilter, TDF_AttributeIndexedMap &aMap) const
Standard_EXPORT
Handle_TDataStd_TreeNode 
Father () const
 Returns the father TreeNode of <me>. Null if root.
.
Standard_EXPORT Standard_Boolean FindAttribute (const Standard_GUID &anID, Handle(TDF_Attribute)&anAttribute) const
Standard_EXPORT
Handle_TDataStd_TreeNode 
First () const
 Returns the first child tree node in this tree node object.
.
Standard_EXPORT void Forget (const Standard_Integer aTransaction)
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren=Standard_True) const
Standard_EXPORT Standard_Boolean ForgetAttribute (const Standard_GUID &aguid) const
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
Standard_Boolean HasFather () const
 Returns true if this tree node attribute has a father tree node.
.
Standard_Boolean HasFirst () const
 Returns true if this tree node attribute has a first child tree node.
.
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
Standard_Boolean HasLast () const
 Returns true if this tree node attribute has a last child tree node.
.
Standard_Boolean HasNext () const
 Returns true if this tree node attribute has a next tree node.
.
Standard_Boolean HasPrevious () const
 Returns true if this tree node attribute has a previous tree node.
.
Standard_EXPORT const
Standard_GUID & 
ID () const
Standard_EXPORT Standard_Boolean InsertAfter (const Handle(TDataStd_TreeNode)&Node)
Standard_EXPORT Standard_Boolean InsertBefore (const Handle(TDataStd_TreeNode)&Node)
Standard_EXPORT Standard_Boolean IsAscendant (const Handle(TDataStd_TreeNode)&of) const
Standard_EXPORT Standard_Boolean IsAttribute (const Standard_GUID &anID) const
Standard_Boolean IsBackuped () const
Standard_EXPORT Standard_Boolean IsChild (const Handle(TDataStd_TreeNode)&of) const
 Returns true if this tree node attribute is a child of of.
.
Standard_EXPORT Standard_Boolean IsDescendant (const Handle(TDataStd_TreeNode)&of) const
Standard_EXPORT Standard_Boolean IsFather (const Handle(TDataStd_TreeNode)&of) const
 Returns true if this tree node attribute is a father of of.
.
Standard_Boolean IsForgotten () const
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_Boolean IsNew () const
Standard_EXPORT Standard_Boolean IsRoot () const
Standard_Boolean IsValid () const
Standard_EXPORT const TDF_Label Label () const
Standard_EXPORT
Handle_TDataStd_TreeNode 
Last ()
virtual Standard_EXPORT
Handle_TDF_Attribute 
NewEmpty () const
Standard_EXPORT
Handle_TDataStd_TreeNode 
Next () const
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
Standard_OStream & operator<< (Standard_OStream &anOS) const
virtual Standard_EXPORT void Paste (const Handle(TDF_Attribute)&into, const Handle(TDF_RelocationTable)&RT) const
Standard_EXPORT Standard_Boolean Prepend (const Handle(TDataStd_TreeNode)&Child)
Standard_EXPORT
Handle_TDataStd_TreeNode 
Previous () const
virtual Standard_EXPORT void References (const Handle(TDF_DataSet)&aDataSet) const
Standard_EXPORT Standard_Boolean Remove ()
virtual Standard_EXPORT void Restore (const Handle(TDF_Attribute)&with)
Standard_EXPORT
Handle_TDataStd_TreeNode 
Root () const
 Returns the ultimate father of this tree node attribute.
.
Standard_EXPORT void SetFather (const Handle(TDataStd_TreeNode)&F)
Standard_EXPORT void SetFirst (const Handle(TDataStd_TreeNode)&F)
Standard_EXPORT void SetLast (const Handle(TDataStd_TreeNode)&F)
Standard_EXPORT void SetNext (const Handle(TDataStd_TreeNode)&F)
Standard_EXPORT void SetPrevious (const Handle(TDataStd_TreeNode)&F)
Standard_EXPORT void SetTreeID (const Standard_GUID &explicitID)
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
Standard_Integer Transaction () const
Standard_EXPORT Standard_Integer UntilTransaction () const

Static Public Member Functions

static Standard_EXPORT
Standard_Boolean 
Find (const TDF_Label &L, Handle(TDataStd_TreeNode)&T)
static Standard_EXPORT const
Standard_GUID & 
GetDefaultTreeID ()
static Standard_EXPORT
Handle_TDataStd_TreeNode 
Set (const TDF_Label &L, const Standard_GUID &ExplicitTreeID)
static Standard_EXPORT
Handle_TDataStd_TreeNode 
Set (const TDF_Label &L)

Private Attributes

TDataStd_PtrTreeNode myFather
TDataStd_PtrTreeNode myFirst
TDataStd_PtrTreeNode myLast
TDataStd_PtrTreeNode myNext
TDataStd_PtrTreeNode myPrevious
Standard_GUID myTreeID

Friends

class TDataStd_ChildNodeIterator
class TDF_AttributeIterator
class TDF_Data
class TDF_DeltaOnForget
class TDF_Label
class TDF_LabelNode

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index