#include <TNodeTree.h>
Classes | |
class | TNode |
Public Member Functions | |
TNodeTree () | |
~TNodeTree () | |
void | Insert (T *parentNode, T *sourceNode) |
Inserts node as a child of another node. | |
void | InsertAtRoot (T *sourceNode) |
Inserts node to the default tree. | |
void | ReInsert (T *parentNode, T *sourceNode) |
Tries to remove sourceNode from the tree and inserts it to the parentNode or to the root. | |
T * | Remove (T &node, TBOOL flag=false) |
T * | Remove (T *node, TBOOL flag=false) |
void | DeleteRecurse (T *node) |
void | DeleteAll () |
T * | GetRoot () |
T * | ChildOfRoot () |
size_t | Count () const |
TBOOL | IsLinked () const |
Protected Attributes | |
TNode | m_Root |
size_t | m_Count |
Definition at line 7 of file TNodeTree.h.
|
inline |
Definition at line 48 of file TNodeTree.h.
Definition at line 53 of file TNodeTree.h.
|
inline |
Definition at line 246 of file TNodeTree.h.
|
inline |
Definition at line 251 of file TNodeTree.h.
|
inline |
Definition at line 227 of file TNodeTree.h.
|
inline |
Definition at line 184 of file TNodeTree.h.
|
inline |
Definition at line 241 of file TNodeTree.h.
|
inline |
Inserts node as a child of another node.
parentNode | Pointer to the parent node. |
sourceNode | Pointer to the node you want to insert. |
Definition at line 65 of file TNodeTree.h.
|
inline |
Inserts node to the default tree.
sourceNode | Pointer to the node you want to insert. |
Definition at line 103 of file TNodeTree.h.
Definition at line 256 of file TNodeTree.h.
|
inline |
Tries to remove sourceNode from the tree and inserts it to the parentNode or to the root.
Definition at line 111 of file TNodeTree.h.
Definition at line 127 of file TNodeTree.h.
Definition at line 179 of file TNodeTree.h.
|
protected |
Definition at line 263 of file TNodeTree.h.
Definition at line 262 of file TNodeTree.h.