Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsDataAccessor Class Reference

Interfaice specification or variety of data accessor classes like, bintree, hash etc. More...

#include <dsDataAccessor.h>

Inheritance diagram for dsDataAccessor:

dsBinTreeGeneric dsHashTableGeneric dsBinTree dsHashTable btest List of all members.

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

Detailed Description

Member Enumeration Documentation

enum dsDataAccessor::DACleanupMode [protected]

Enumeration values:
cmPASSIVE  don't delete data body
cmPURGE  delete data body on replace or cleanup

Constructor & Destructor Documentation

dsDataAccessor::dsDataAccessor DACleanupMode    purge [inline, protected]

Cleranup mode. See DACleanupMode

Member Function Documentation

virtual void* dsDataAccessor::insert void *    a,
bool    replace
[protected, pure virtual]

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.

virtual void* dsDataAccessor::remove void *    a [protected, pure virtual]

Remove object a from data storage. Return pointer to removed object or NULL if object doesn't exist

Implemented in dsBinTreeGeneric, and dsHashTableGeneric.

virtual void* dsDataAccessor::seek void *    a [protected, pure virtual]

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.

virtual void* dsDataAccessor::walk   [inline, protected, virtual]

Walk throuph storage behavioure details depends of storage nature

Member Data Documentation

DACleanupMode dsDataAccessor::_purge [protected]

Cleanup mode flag. See DACleanupMode

The documentation for this class was generated from the following file:
Generated on Mon May 16 18:26:59 2005 for libdms4 by doxygen1.3-rc2