Data Handling --
Trees
The Tree object represents a heirarchical structure in its entirety. It holds an anchor point (root) and current entry points (root and current) to the tree.
Include file:
class Tree {
// Data
TNode* m_pnodeRoot; // the root node of the tree
TNode* m_pnodeCurrent; // the node in the tree currently active
// Functions
// see Implementation -- Trees
};
Entry parts:
The Reference to Root Node (m_pnodeRoot) points to the root node of the tree. All the branches of the tree start at the root node. If the tree doesn't have any nodes yet, the Reference to Root Node is set to NULL.
The Reference to Current Node (m_pnodeCurrent) points to the currently active node. All actions performed on the tree happen to the current node. Some actions change the current node reference to a different node in the tree. If the tree doesn't have any nodes yet, the Reference to Current Node is set to NULL.
Return ...
Andrew Tompkins
Beaverton, OR 97006
Last rev: 19 JUL 03
URL:
http://home.comcast.net/~andytom/simplan.docs/data/tree.html