34 #include "dcmtk/config/osconfig.h"
36 #include "dcmtk/dcmsr/dsrtypes.h"
37 #include "dcmtk/dcmsr/dsrtncsr.h"
117 virtual void clear();
135 size_t gotoNode(
const size_t searchID,
136 const OFBool startFromRoot = OFTrue);
147 const OFBool startFromRoot = OFTrue);
virtual ~DSRTreeNode()
destructor
static size_t IdentCounter
global counter used to create the unique identifiers
OFBool isEmpty() const
check whether tree has any nodes
DSRTree()
default constructor
virtual void clear()
clear all member variables
size_t gotoNode(const size_t searchID, const OFBool startFromRoot=OFTrue)
set internal cursor to specified node
DSRTreeNode()
default constructor
virtual size_t removeNode()
remove current node from tree.
DSRTreeNode * Down
pointer to first child node (if any)
Class managing a tree of nodes.
size_t gotoRoot()
set internal cursor to root node
DSRTreeNode * getRoot() const
get pointer to root node
virtual size_t addNode(DSRTreeNode *node, const E_AddMode addMode=AM_afterCurrent)
add new node to the current one.
const size_t Ident
unique identifier (created automatically)
virtual ~DSRTree()
destructor
add new node after current one (sibling)
DSRTreeNode * Prev
pointer to previous tree node (if any)
DSRTreeNode * Next
pointer to next tree node (if any)
General purpose class hiding global functions, constants and types from the global namespace...
a simple string class that implements a subset of std::string.
Class implementing a tree node cursor.
DSRTreeNode * RootNode
pointer to the root tree node