oasys::DurableTable< _Type > Class Template Reference

#include <DurableStore.h>

Inheritance diagram for oasys::DurableTable< _Type >:

oasys::SingleTypeDurableTable< _DataType > oasys::StaticTypedDurableTable List of all members.

Detailed Description

template<typename _Type>
class oasys::DurableTable< _Type >

Object that encapsulates a single durable table.

The interaction with the underlying storage implementation is handled by the DurableTableImpl class.

Definition at line 413 of file DurableStore.h.

Public Member Functions

 DurableTable (DurableTableImpl *impl, const std::string &name, DurableObjectCache< _Type > *cache)
 ~DurableTable ()
int del (const SerializableObject &key)
 Delete a (key,data) pair from the database.
size_t size ()
 Return the number of elements in the table.
DurableIteratoritr ()
 Return a newly allocated iterator for the table.
DurableTableImplimpl ()
 Return the underlying table implementation.
std::string name ()
 Return table name.
DurableObjectCache< _Type > * cache ()
 Return pointer to the cache (if any).

Protected Member Functions

int cleanup_put_flags (int flags)

Protected Attributes

DurableTableImplimpl_
std::string name_
DurableObjectCache< _Type > * cache_

Private Member Functions

 DurableTable ()
 DurableTable (const DurableTable &)


Constructor & Destructor Documentation

template<typename _Type>
oasys::DurableTable< _Type >::DurableTable ( DurableTableImpl impl,
const std::string &  name,
DurableObjectCache< _Type > *  cache 
) [inline]

Definition at line 415 of file DurableStore.h.

template<typename _Type>
oasys::DurableTable< _Type >::~DurableTable (  )  [inline]

Definition at line 420 of file DurableStore.h.

template<typename _Type>
oasys::DurableTable< _Type >::DurableTable (  )  [private]

template<typename _Type>
oasys::DurableTable< _Type >::DurableTable ( const DurableTable< _Type > &   )  [private]


Member Function Documentation

template<typename _Type>
int DurableTable< _Type >::del ( const SerializableObject key  )  [inline]

Delete a (key,data) pair from the database.

Returns:
DS_OK, DS_NOTFOUND if key is not found

Definition at line 1101 of file DurableStore.h.

template<typename _Type>
size_t DurableTable< _Type >::size (  )  [inline]

Return the number of elements in the table.

Definition at line 1115 of file DurableStore.h.

template<typename _Type>
DurableIterator* oasys::DurableTable< _Type >::itr (  )  [inline]

Return a newly allocated iterator for the table.

Caller has the responsibility to delete it once finished.

Definition at line 441 of file DurableStore.h.

template<typename _Type>
DurableTableImpl* oasys::DurableTable< _Type >::impl (  )  [inline]

Return the underlying table implementation.

Definition at line 446 of file DurableStore.h.

template<typename _Type>
std::string oasys::DurableTable< _Type >::name (  )  [inline]

Return table name.

Definition at line 451 of file DurableStore.h.

template<typename _Type>
DurableObjectCache<_Type>* oasys::DurableTable< _Type >::cache (  )  [inline]

Return pointer to the cache (if any).

Definition at line 456 of file DurableStore.h.

template<typename _Type>
int DurableTable< _Type >::cleanup_put_flags ( int  flags  )  [protected]

Definition at line 1123 of file DurableStore.h.


Member Data Documentation

template<typename _Type>
DurableTableImpl* oasys::DurableTable< _Type >::impl_ [protected]

Definition at line 459 of file DurableStore.h.

template<typename _Type>
std::string oasys::DurableTable< _Type >::name_ [protected]

Definition at line 460 of file DurableStore.h.

template<typename _Type>
DurableObjectCache<_Type>* oasys::DurableTable< _Type >::cache_ [protected]

Definition at line 461 of file DurableStore.h.


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 16:57:02 2007 for DTN Reference Implementation by  doxygen 1.5.1