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

Public Methods | |
| dsHashTable (int numEntries, DACleanupMode purge=cmPURGE) | |
| char * | seek (const char *key, char *defval=0) |
| dsDataPair * | seek (dsDataPair *dp) |
| void * | insert (const char *key, void *value, bool replace=false) |
| void * | insert (const char *key, const void *value, size_t size, bool replace=false) |
| char * | insert (const char *key, const char *value, bool replace=false) |
| long | insert (const char *key, long value, bool replace=false) |
| dsDataPair * | insert (dsDataPair *dp, bool replace=false) |
| 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) |
| virtual int | primary_hash_func (void *a) |
| virtual int | secondary_hash_func (void *a) |
| virtual void * | walk () |
Protected Attributes | |
| DACleanupMode | _purge |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Implements dsHashTableGeneric. |
|
|
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 |
|
|
Implements dsHashTableGeneric. |
|
|
Remove object a from data storage. Return pointer to removed object or NULL if object doesn't exist Implements dsDataAccessor. |
|
|
Implements dsHashTableGeneric. |
|
|
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