#include <dsHashTable.h>
Inheritance diagram for dsHashTableGeneric:

Public Methods | |
| dsHashTableGeneric (int numEntries, DACleanupMode purge=cmPURGE) | |
| virtual | ~dsHashTableGeneric () |
| virtual void * | insert (void *a, bool replace=false) |
| virtual void * | remove (void *a) |
| virtual void * | seek (void *a) |
| void | clear () |
| void * | walk (int i) |
| int | HSize (void) |
| int | NumEntries (void) |
Protected Types | |
| enum | DACleanupMode { cmPASSIVE, cmPURGE } |
Protected Methods | |
| virtual int | cf (void *a, void *b)=0 |
| virtual int | primary_hash_func (void *a)=0 |
| virtual int | secondary_hash_func (void *a)=0 |
| virtual void * | walk () |
Protected Attributes | |
| DACleanupMode | _purge |
|
|
|
|
||||||||||||
|
Create object instance
|
|
|
|
|
||||||||||||
|
Implemented in dsHashTable. |
|
|
Reinit table, keep current size |
|
|
Function returns curren table size |
|
||||||||||||
|
Insert object a into data storage, if replace flag is set existing object will be replaced. Return pointer to existsing object or NULL if new object was inserted. Implements dsDataAccessor. |
|
|
Function returns number of non-empty records in the table |
|
|
Implemented in dsHashTable. |
|
|
Remove object a from data storage. Return pointer to removed object or NULL if object doesn't exist Implements dsDataAccessor. |
|
|
Implemented in dsHashTable. |
|
|
Find object matching a in tree and return pointer to found one or NULL if seek can't be done. Implements dsDataAccessor. |
|
|
Walk throuph storage behavioure details depends of storage nature |
|
|
Function returns table i'th table record even it is empty |
|
|
Cleanup mode flag. See DACleanupMode |
1.3-rc2