#include <hierarchy_tree.h>
Collaboration diagram for HierarchyTree< NodeClass >::NodeNavigator:

Public Member Functions | |
| NodeNavigator (void) | |
| constructs empty navigator | |
| NodeNavigator (const NodeNavigator &navig) | |
| copy ctor | |
| NodeClass & | operator * () const |
| reference access operator for node-data access | |
| NodeClass * | operator-> () const |
| member access operator for node-data access | |
| NodeNavigator & | getChild (const int child_id, NodeNavigator &child) const |
| children access | |
| bool | isValid (void) const |
| checks for validity of encapsulated node | |
Private Member Functions | |
| HierarchyTree * | getTree () const |
| access the tree referenced by this navigator | |
| NodeNavigator (HierarchyTree *t, int level, int index) | |
| creates a navigator with explicit tree and node position | |
Private Attributes | |
| HierarchyTree * | mTree |
| pointer to tree | |
| int | mNodeLevel |
| position of node in tree (depth) | |
| int | mNodeIndex |
| position of node in tree (left offset) | |
Friends | |
| class | HierarchyTree< NodeClass > |
Definition at line 136 of file hierarchy_tree.h.
|
||||||||||
|
constructs empty navigator
Definition at line 144 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::getRoot(). |
|
||||||||||
|
copy ctor
Definition at line 151 of file hierarchy_tree.h. |
|
||||||||||||||||||||
|
creates a navigator with explicit tree and node position
Definition at line 211 of file hierarchy_tree.h. |
|
||||||||||||||||
|
children access
Definition at line 178 of file hierarchy_tree.h. References assertL, HierarchyTree< NodeClass >::NodeNavigator::getTree(), HierarchyTree< NodeClass >::NodeNavigator::isValid(), HierarchyTree< NodeClass >::NodeNavigator::mNodeIndex, HierarchyTree< NodeClass >::NodeNavigator::mNodeLevel, and HierarchyTree< NodeClass >::NodeNavigator::mTree. Here is the call graph for this function: ![]() |
|
|||||||||
|
access the tree referenced by this navigator
Definition at line 200 of file hierarchy_tree.h. References assertL, and HierarchyTree< NodeClass >::NodeNavigator::mTree. Referenced by HierarchyTree< NodeClass >::NodeNavigator::getChild(), HierarchyTree< NodeClass >::NodeNavigator::isValid(), and HierarchyTree< NodeClass >::NodeNavigator::operator *(). |
|
||||||||||
|
checks for validity of encapsulated node
Definition at line 192 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::NodeNavigator::getTree(), HierarchyTree< NodeClass >::isNodeValid(), HierarchyTree< NodeClass >::NodeNavigator::mNodeIndex, and HierarchyTree< NodeClass >::NodeNavigator::mNodeLevel. Referenced by HierarchyTree< NodeClass >::NodeNavigator::getChild(). Here is the call graph for this function: ![]() |
|
|||||||||
|
reference access operator for node-data access
Definition at line 158 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::getNode(), HierarchyTree< NodeClass >::NodeNavigator::getTree(), HierarchyTree< NodeClass >::NodeNavigator::mNodeIndex, and HierarchyTree< NodeClass >::NodeNavigator::mNodeLevel. Referenced by HierarchyTree< NodeClass >::NodeNavigator::operator->(). Here is the call graph for this function: ![]() |
|
|||||||||
|
member access operator for node-data access
Definition at line 166 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::NodeNavigator::operator *(). Here is the call graph for this function: ![]() |
|
|||||
|
Definition at line 138 of file hierarchy_tree.h. |
|
|||||
|
position of node in tree (left offset)
Definition at line 217 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::NodeNavigator::getChild(), HierarchyTree< NodeClass >::NodeNavigator::isValid(), and HierarchyTree< NodeClass >::NodeNavigator::operator *(). |
|
|||||
|
position of node in tree (depth)
Definition at line 217 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::NodeNavigator::getChild(), HierarchyTree< NodeClass >::NodeNavigator::isValid(), and HierarchyTree< NodeClass >::NodeNavigator::operator *(). |
|
|||||
|
pointer to tree
Definition at line 215 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::NodeNavigator::getChild(), and HierarchyTree< NodeClass >::NodeNavigator::getTree(). |
1.4.5