HDK
|
#include <UT_BidirectionalTree.h>
Public Types | |
typedef UT_BidirectionalTree< T > | NodeType |
Public Member Functions | |
UT_BidirectionalTree () | |
virtual | ~UT_BidirectionalTree () |
void | unlinkAll () |
Unlink this node from the tree completely. More... | |
void | setParent (NodeType *parent) |
void | addChildToHead (NodeType *child) |
Add a child node to the head of the children list. O(1) More... | |
void | removeChild (NodeType *child) |
Remove the given child node. More... | |
void | removeAllChildren () |
Remove all children from the tree. More... | |
T * | getParent () const |
Iterators. More... | |
T * | getFirstChild () const |
Iterators. More... | |
T * | getPrevSibling () const |
Iterators. More... | |
T * | getNextSibling () const |
Iterators. More... | |
bool | hasParent () const |
Some utility methods. More... | |
bool | hasChildren () const |
Some utility methods. More... | |
bool | hasSiblings () const |
Some utility methods. More... | |
bool | isInTree () const |
Some utility methods. More... | |
Definition at line 31 of file UT_BidirectionalTree.h.
typedef UT_BidirectionalTree<T> UT_BidirectionalTree< T >::NodeType |
Definition at line 34 of file UT_BidirectionalTree.h.
|
inline |
Definition at line 36 of file UT_BidirectionalTree.h.
|
inlinevirtual |
Definition at line 43 of file UT_BidirectionalTree.h.
|
inline |
Add a child node to the head of the children list. O(1)
Definition at line 77 of file UT_BidirectionalTree.h.
|
inline |
Iterators.
Definition at line 124 of file UT_BidirectionalTree.h.
|
inline |
Iterators.
Definition at line 132 of file UT_BidirectionalTree.h.
|
inline |
Iterators.
Definition at line 119 of file UT_BidirectionalTree.h.
|
inline |
Iterators.
Definition at line 128 of file UT_BidirectionalTree.h.
|
inline |
Some utility methods.
Definition at line 141 of file UT_BidirectionalTree.h.
|
inline |
Some utility methods.
Definition at line 140 of file UT_BidirectionalTree.h.
|
inline |
Some utility methods.
Definition at line 142 of file UT_BidirectionalTree.h.
|
inline |
Some utility methods.
Definition at line 143 of file UT_BidirectionalTree.h.
|
inline |
Remove all children from the tree.
Definition at line 111 of file UT_BidirectionalTree.h.
|
inline |
Remove the given child node.
Definition at line 89 of file UT_BidirectionalTree.h.
|
inline |
Set the parent of this node. If it already belongs to a tree, it will first be removed from it.
Definition at line 57 of file UT_BidirectionalTree.h.
|
inline |
Unlink this node from the tree completely.
Definition at line 49 of file UT_BidirectionalTree.h.