#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. | |
| void | setParent (NodeType *parent) |
| void | addChildToHead (NodeType *child) |
| Add a child node to the head of the children list. O(1). | |
| void | removeChild (NodeType *child) |
| Remove the given child node. | |
| void | removeAllChildren () |
| Remove all children from the tree. | |
| T * | getParent () const |
| Iterators. | |
| T * | getFirstChild () const |
| Iterators. | |
| T * | getPrevSibling () const |
| Iterators. | |
| T * | getNextSibling () const |
| Iterators. | |
| bool | hasParent () const |
| Some utility methods. | |
| bool | hasChildren () const |
| Some utility methods. | |
| bool | hasSiblings () const |
| Some utility methods. | |
| bool | isInTree () const |
| Some utility methods. | |
Definition at line 39 of file UT_BidirectionalTree.h.
| typedef UT_BidirectionalTree<T> UT_BidirectionalTree< T >::NodeType |
Definition at line 42 of file UT_BidirectionalTree.h.
| UT_BidirectionalTree< T >::UT_BidirectionalTree | ( | ) | [inline] |
Definition at line 44 of file UT_BidirectionalTree.h.
| virtual UT_BidirectionalTree< T >::~UT_BidirectionalTree | ( | ) | [inline, virtual] |
Definition at line 51 of file UT_BidirectionalTree.h.
| void UT_BidirectionalTree< T >::addChildToHead | ( | NodeType * | child | ) | [inline] |
Add a child node to the head of the children list. O(1).
Definition at line 85 of file UT_BidirectionalTree.h.
| T* UT_BidirectionalTree< T >::getFirstChild | ( | ) | const [inline] |
| T* UT_BidirectionalTree< T >::getNextSibling | ( | ) | const [inline] |
| T* UT_BidirectionalTree< T >::getParent | ( | ) | const [inline] |
| T* UT_BidirectionalTree< T >::getPrevSibling | ( | ) | const [inline] |
| bool UT_BidirectionalTree< T >::hasChildren | ( | ) | const [inline] |
| bool UT_BidirectionalTree< T >::hasParent | ( | ) | const [inline] |
| bool UT_BidirectionalTree< T >::hasSiblings | ( | ) | const [inline] |
| bool UT_BidirectionalTree< T >::isInTree | ( | ) | const [inline] |
| void UT_BidirectionalTree< T >::removeAllChildren | ( | ) | [inline] |
| void UT_BidirectionalTree< T >::removeChild | ( | NodeType * | child | ) | [inline] |
| void UT_BidirectionalTree< T >::setParent | ( | NodeType * | parent | ) | [inline] |
Set the parent of this node. If it already belongs to a tree, it will first be removed from it.
Definition at line 65 of file UT_BidirectionalTree.h.
| void UT_BidirectionalTree< T >::unlinkAll | ( | ) | [inline] |
1.5.9