#include <mi32/btreefun.h>
Public Member Functions | |
| ERRVALUE | Allocate (INT32 InitialNumItems, TEST Test=TEST()) |
| BALANCEDTREE () | |
| ERRVALUE | Clear () |
| ERRVALUE | DumpTree (DUMP &Dump) |
| INT32 | FindAndInsertKey (_BT &Item, INT32 CurTagNum, bool &AddedItem) |
| bool | IsAllocated () const |
| INT32 | LocateKey (const _BT &Item) |
| void | SetTestFunc (TEST &NewTest) |
| ERRVALUE | TraverseTree (DUMP &Dump) |
| ~BALANCEDTREE () | |
Classes | |
| class | DUMP |
| Interface class to "dump" an item from the tree, used in DumpTree() and TraverseTree(). More... | |
| class | TEST |
| Interface class to test two tree items, can use default if _T::operator<() defined. More... | |
Definition at line 205 of file btreefun.h.
| BALANCEDTREE< _BT >::BALANCEDTREE | ( | ) | [inline] |
| BALANCEDTREE< _BT >::~BALANCEDTREE | ( | ) | [inline] |
| ERRVALUE BALANCEDTREE< _BT >::Allocate | ( | INT32 | InitialNumItems, | |
| TEST | Test = TEST() | |||
| ) | [inline] |
Initialize the balanced tree giving an initial number of items.
Definition at line 247 of file btreefun.h.
| ERRVALUE BALANCEDTREE< _BT >::Clear | ( | ) | [inline] |
| ERRVALUE BALANCEDTREE< _BT >::DumpTree | ( | DUMP & | Dump | ) | [inline] |
| INT32 BALANCEDTREE< _BT >::FindAndInsertKey | ( | _BT & | Item, | |
| INT32 | CurTagNum, | |||
| bool & | AddedItem | |||
| ) | [inline] |
Locate an item in the tree and return its key value.
If the item does not exist, add it to the tree
| CurTagNum | Tag number to use if 'Item' is added to the tree |
| AddedItem | Set to 'true' if 'Item' is added to the tree |
Definition at line 267 of file btreefun.h.
| bool BALANCEDTREE< _BT >::IsAllocated | ( | ) | const [inline] |
Determine if the balanced tree Allocate() method has been called.
Definition at line 279 of file btreefun.h.
| INT32 BALANCEDTREE< _BT >::LocateKey | ( | const _BT & | Item | ) | [inline] |
| void BALANCEDTREE< _BT >::SetTestFunc | ( | TEST & | NewTest | ) | [inline] |
| ERRVALUE BALANCEDTREE< _BT >::TraverseTree | ( | DUMP & | Dump | ) | [inline] |
1.5.2