#include <DurableTable.h>

Definition at line 91 of file DurableTable.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 &) | |
| SingleTypeDurableTable< _DataType >::SingleTypeDurableTable | ( | DurableTableImpl * | impl, | |
| const std::string & | name, | |||
| DurableObjectCache< _DataType > * | cache | |||
| ) | [inline] |
| SingleTypeDurableTable< _DataType >::SingleTypeDurableTable | ( | const SingleTypeDurableTable< _DataType > & | ) | [private] |
| int SingleTypeDurableTable< _DataType >::put | ( | const SerializableObject & | key, | |
| const _DataType * | data, | |||
| int | flags | |||
| ) |
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. |
| int SingleTypeDurableTable< _DataType >::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.
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 |
| int SingleTypeDurableTable< _DataType >::get_copy | ( | const SerializableObject & | key, | |
| _DataType * | data | |||
| ) |
Get variant which can take a blank object down into the get function.
1.5.3