#include <Tree.h>
Inheritance diagram for Fluxus::Tree:
Public Member Functions | |
Tree () | |
virtual | ~Tree () |
virtual int | AddNode (int ParentID, Node *) |
Adds a node onto a parent node (0 is the root). | |
virtual Node * | FindNode (int ID) const |
Finds a node in the tree from its ID. | |
virtual void | RemoveNode (Node *node) |
Frees a node - and all it's children too. | |
virtual void | Clear () |
Clear the tree. | |
virtual void | Dump (int Depth=0, Node *node=NULL) const |
Print out the tree for debugging. | |
bool | IsDecendedFrom (Node *Parent, Node *Child) const |
Is the child attached to the parent? | |
Protected Member Functions | |
void | RemoveNodeWalk (Node *node) |
Protected Attributes | |
map< int, Node * > | m_NodeMap |
Node * | m_Root |
int | m_CurrentID |
Definition at line 48 of file Tree.h.
int Tree::AddNode | ( | int | ParentID, | |
Node * | ||||
) | [virtual] |
Node * Tree::FindNode | ( | int | ID | ) | const [virtual] |
void Tree::RemoveNode | ( | Node * | node | ) | [virtual] |
virtual void Fluxus::Tree::Clear | ( | ) | [inline, virtual] |
void Tree::Dump | ( | int | Depth = 0 , |
|
Node * | node = NULL | |||
) | const [virtual] |
map<int,Node*> Fluxus::Tree::m_NodeMap [protected] |
Node* Fluxus::Tree::m_Root [protected] |
int Fluxus::Tree::m_CurrentID [protected] |