#include <DurableStore.h>
Inheritance diagram for oasys::SingleTypeDurableTable< _DataType >:
Definition at line 475 of file DurableStore.h.
Public Member Functions | |
SingleTypeDurableTable (DurableTableImpl *impl, const std::string &name, DurableObjectCache< _DataType > *cache) | |
Constructor. | |
int | put (const SerializableObject &key, const _DataType *data, int flags) |
Update the value of the key, data pair in the database. | |
int | get (const SerializableObject &key, _DataType **data, bool *from_cache=0) |
Get the data for key, possibly creating a new object of the template type _DataType. | |
int | get_copy (const SerializableObject &key, _DataType *data) |
Get variant which can take a blank object down into the get function. | |
Private Member Functions | |
SingleTypeDurableTable (const SingleTypeDurableTable &) |
oasys::SingleTypeDurableTable< _DataType >::SingleTypeDurableTable | ( | DurableTableImpl * | impl, | |
const std::string & | name, | |||
DurableObjectCache< _DataType > * | cache | |||
) | [inline] |
oasys::SingleTypeDurableTable< _DataType >::SingleTypeDurableTable | ( | const SingleTypeDurableTable< _DataType > & | ) | [private] |
int SingleTypeDurableTable< _DataType >::put | ( | const SerializableObject & | key, | |
const _DataType * | data, | |||
int | flags | |||
) | [inline] |
Update the value of the key, data pair in the database.
It should already exist.
key | Key object | |
data | Data object | |
flags | Bit vector of DurableStoreFlags_t values. |
Definition at line 1206 of file DurableStore.h.
int SingleTypeDurableTable< _DataType >::get | ( | const SerializableObject & | key, | |
_DataType ** | data, | |||
bool * | from_cache = 0 | |||
) | [inline] |
Get the data for key, possibly creating a new object of the template type _DataType.
Note that the given type must match the actual type that was stored in the database, or this will return undefined garbage.
key | Key object | |
data | Data object | |
from_cache | == true if the object retrieved from the cache |
Definition at line 1139 of file DurableStore.h.
int SingleTypeDurableTable< _DataType >::get_copy | ( | const SerializableObject & | key, | |
_DataType * | data | |||
) | [inline] |
Get variant which can take a blank object down into the get function.
Definition at line 1182 of file DurableStore.h.