Tree::GetNextLevelNode
Defined in:
Returns the next node in a traversal of a tree that is not a subnode of the current node.
TSTree.h
Prototype
type *GetNextLevelNode(const Tree<type> *node) const;
Parameters
node |
A pointer to the current node in the traversal. |
Description
During iteration of the nodes in a tree, the GetNextLevelNode
function can be used to jump to the next subnode on the same level as the node
parameter, skipping its entire subtree. Node selection after skipping the subtree behaves exactly like that used by the Tree::GetNextTreeNode
function.
See Also