#include <imaptable.h>
Collaboration diagram for ImplicitMapTable< T, ID, OP >:
Public Member Functions | |
ImplicitMapTable () | |
Construct empty map table. | |
ImplicitMapTable (uint m) | |
Construct empty map table with specified order of the B-tree. | |
~ImplicitMapTable () | |
Destructor cleans up the map table. | |
T * | AddNode (T *n) |
Add a node to the map table. | |
T * | lookup (ID k) |
Perform lookup in map table. | |
void | clear () |
Clear map table (all information is simply purged). | |
Private Member Functions | |
ImplicitMapTable (const ImplicitMapTable &) | |
Do not use:. | |
void | operator= (const ImplicitMapTable &) |
Do not use:. | |
Private Attributes | |
TLBTree< T *, OP > | map |
This is the actual storage of the information. |
In effect, this is nothing more than a B-tree with suitable compare operators.
This is only meant to be used for pointer types for T. You need to supply an operator template for comparison operators. In simple cases, you can get along with only providing an order paramter and using the ImplicitMapOperators<> template (this file). In this case, the order parameter must be of type ID.
This class is NOT C++-safe.
Definition at line 96 of file imaptable.h.
|
Do not use:.
|
|
Construct empty map table.
Definition at line 110 of file imaptable.h. |
|
Construct empty map table with specified order of the B-tree.
Definition at line 112 of file imaptable.h. |
|
Destructor cleans up the map table.
Definition at line 114 of file imaptable.h. |
|
Add a node to the map table. Returns NULL on success or already known entry (type T*). Definition at line 121 of file imaptable.h. |
|
Clear map table (all information is simply purged).
Definition at line 141 of file imaptable.h. |
|
Perform lookup in map table. Returns NULL on failure or associated info (T*) if found. Definition at line 134 of file imaptable.h. |
|
Do not use:.
|
|
This is the actual storage of the information.
Definition at line 102 of file imaptable.h. |