![]() |
Humble Framework for SkyOS |
#include <HTree.h>
Inheritance diagram for HTree< T >:

Definition at line 714 of file HTree.h.
Public Member Functions | |
| ErrCode | Delete (const T &data) |
| ErrCode | DeleteAll (void) |
| ErrCode | Insert (const T &data, const bool bUpdate=false) |
| virtual HTreeNodePtr | Search (const T *pData) |
| virtual HTreeNodePtr | Search (T const &data) const |
| uint32 | GetDepth (void) const |
| Returns the depth of the entire tree. | |
| uint32 | GetCount () const |
| Returns the count of nodes in the entire tree. | |
| HTreeNodePtr | GetRoot () const |
| bool | IsEmpty (void) const |
| bool | IsNotEmpty (void) const |
Protected Member Functions | |
| ErrCode | deleteNode (HTreeNodePtr pn) |
Protected Attributes | |
| uint32 | m_uNodes |
| Count of nodes in the tree. | |
| HTreeNodePtr | m_pnRoot |
| Ptr to root node (NULL if empty tree). | |
|
||||||||||
|
Deletes a single node from the tree, rebalancing the tree as needed.
|
|
||||||||||
|
Find a node for the given data and remove it from the tree
|
|
||||||||||
|
Delete all the nodes in the current tree.
|
|
||||||||||||||||
|
Insert a new value into an existing tree
|
|
||||||||||
|
Search the entire tree for a given data
|
|
||||||||||
|
Search the entire tree for a given data
|
|
||||||||||
|
Traverses the tree to compute the depth of the sub-tree from this node downwards. Minimum value will always be 1 (for this node).
|
|
||||||||||
|
The node count is cached, so this method does not touch the tree nodes at all.
|
|
||||||||||
|
Returns the root node of the tree.
|
|
||||||||||
|
Evaluates to true if the tree is empty, i.e., there are no nodes in it.
|
|
||||||||||
|
Evaluates to true if the tree is not empty, i.e., there is at least one node in it.
|
2006.01.09-16:37