#include <dsDataAccessor.h>
Inheritance diagram for dsDataAccessor:
Protected Types | |
enum | DACleanupMode { cmPASSIVE, cmPURGE } |
Protected Methods | |
dsDataAccessor (DACleanupMode purge) | |
virtual void * | insert (void *a, bool replace)=0 |
virtual void * | remove (void *a)=0 |
virtual void * | seek (void *a)=0 |
virtual void * | walk () |
Protected Attributes | |
DACleanupMode | _purge |
|
|
|
Cleranup mode. See DACleanupMode |
|
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. Implemented in dsBinTreeGeneric, and dsHashTableGeneric. |
|
Remove object a from data storage. Return pointer to removed object or NULL if object doesn't exist Implemented in dsBinTreeGeneric, and dsHashTableGeneric. |
|
Find object matching a in tree and return pointer to found one or NULL if seek can't be done. Implemented in dsBinTreeGeneric, and dsHashTableGeneric. |
|
Walk throuph storage behavioure details depends of storage nature |
|
Cleanup mode flag. See DACleanupMode |