#include <GLIBTree.h>
Inheritance diagram for GLIBTree< Data, ConfigData >:
Public Member Functions | |
GLIBTree (ACompareNodesAlgorithm< Data, ConfigData > *Compare, DeleteTreeDataEnum DeleteTreeData=NO_DELETE_TREE_ITEM, ConfigData *pConfigData=NULL) | |
Constructor. | |
virtual | ~GLIBTree () |
Destructor. | |
virtual Data * | Search (Data *NodeData, bool *NodeInserted) |
Find a data item. If not found, insert it. | |
virtual Data * | Find (Data *NodeData) |
Find a data item. If not found, return NULL. | |
Data * | Delete (Data *NodeData) |
Delete a node from the tree. | |
void | Insert (Data *NodeData) |
Insert a node into the tree. | |
int | GetHeight () |
Get the height of the tree. | |
int | GetNumberOfNodes () |
Get the number of nodes in the tree. | |
Private Attributes | |
GLIBTreeNode< Data, ConfigData > * | m_Root |
Root node of the tree. |
Definition at line 21 of file GLIBTree.h.
|
Definition at line 95 of file GLIBTree.h. References AGenericTree< Data, ConfigData >::m_CompareNodes, GLIBTree< Data, ConfigData >::m_Root, and GLIBTreeNode< Data, ConfigData >::Remove(). Referenced by TestGLIBTree(). |
|
Implements AGenericTree< Data, ConfigData >. Definition at line 103 of file GLIBTree.h. References GLIBTreeNode< Data, ConfigData >::Lookup(), AGenericTree< Data, ConfigData >::m_CompareNodes, and GLIBTree< Data, ConfigData >::m_Root. |
|
Definition at line 130 of file GLIBTree.h. References GLIBTreeNode< Data, ConfigData >::GetHeight(), and GLIBTree< Data, ConfigData >::m_Root. |
|
Definition at line 139 of file GLIBTree.h. References GLIBTreeNode< Data, ConfigData >::GetNodeCount(), and GLIBTree< Data, ConfigData >::m_Root. |
|
Definition at line 86 of file GLIBTree.h. References GLIBTreeNode< Data, ConfigData >::Insert(), AGenericTree< Data, ConfigData >::m_CompareNodes, and GLIBTree< Data, ConfigData >::m_Root. Referenced by GLIBTree< Data, ConfigData >::Search(). |
|
Implements AGenericTree< Data, ConfigData >. Definition at line 109 of file GLIBTree.h. References GLIBTree< Data, ConfigData >::Insert(), AGenericTree< Data, ConfigData >::m_CompareNodes, GLIBTree< Data, ConfigData >::m_Root, and GLIBTreeNode< Data, ConfigData >::Search(). Referenced by TestGLIBTree(). |