C4 Engine
C4 Engine API Documentation

Tree::GetPreviousLevelNode

Defined in:  TSTree.h
Returns the previous node in a traversal of a tree that is not a subnode of the current node.
Prototype

type *GetPreviousLevelNode(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 GetPreviousLevelNode function can be used to jump to the previous 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::GetPreviousTreeNode function.
See Also

Tree::GetPreviousTreeNode

Tree::GetLastSubnode

Tree::GetNextTreeNode

Tree::GetNextLevelNode

Tree::GetPreviousSubnode

Tree::GetNextSubnode

Tree::GetSuperNode

Tree::GetRootNode