Inheritance diagram for DSRTree:
Public Member Functions | |
DSRTree () | |
default constructor | |
virtual | ~DSRTree () |
destructor | |
virtual void | clear () |
clear all member variables | |
OFBool | isEmpty () const |
check whether tree has any nodes | |
size_t | gotoRoot () |
set internal cursor to root node | |
size_t | gotoNode (const size_t searchID, const OFBool startFromRoot=OFTrue) |
set internal cursor to specified node | |
size_t | gotoNode (const OFString &reference, const OFBool startFromRoot=OFTrue) |
set internal cursor to specified node | |
virtual size_t | addNode (DSRTreeNode *node, const E_AddMode addMode=AM_afterCurrent) |
add new node to the current one. | |
virtual size_t | removeNode () |
remove current node from tree. | |
Protected Member Functions | |
DSRTreeNode * | getRoot () const |
get pointer to root node | |
Private Member Functions | |
DSRTree (const DSRTree &) | |
DSRTree & | operator= (const DSRTree &) |
Private Attributes | |
DSRTreeNode * | RootNode |
pointer to the root tree node |
Definition at line 104 of file dsrtree.h.
|
add new node to the current one. Please note that no copy of the given node is created. Therefore, the node should be created with new() - do not use a reference to a local variable. If the node could be added successfully the cursor is set to it automatically.
Reimplemented in DSRDocumentTree. |
|
get pointer to root node
Definition at line 180 of file dsrtree.h. References RootNode. |
|
set internal cursor to specified node
|
|
set internal cursor to specified node
|
|
set internal cursor to root node
|
|
check whether tree has any nodes
|
|
remove current node from tree. Please note that not only the specified node but also all of its child nodes are removed from the tree and then deleted. The cursor is set automatically to a new valid position.
Reimplemented in DSRDocumentTree. |