C4 Engine
C4 Engine API Documentation

Tree::GetNextLevelNode

Defined in:  TSTree.h
Returns the next node in a traversal of a tree that is not a subnode of the current node.
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

Tree::GetNextTreeNode

Tree::GetFirstSubnode

Tree::GetPreviousTreeNode

Tree::GetPreviousLevelNode

Tree::GetPreviousSubnode

Tree::GetNextSubnode

Tree::GetSuperNode

Tree::GetRootNode