#include <DurableTable.h>
This is used for tables (such as a property table) which have specified compile time programmer defined types and have no need for creating a class hierarchy of serializable types to handle. (e.g. a table containing both strings and sequence s)
The underlying DurableObjectCache is specialized with SerializableObject.
Definition at line 217 of file DurableTable.h.
Public Member Functions | |
StaticTypedDurableTable (DurableTableImpl *impl, const std::string &name) | |
Constructor - We don't support caches for now. | |
template<typename _Type> | |
int | put (const SerializableObject &key, const _Type *data, int flags) |
template<typename _Type> | |
int | get (const SerializableObject &key, _Type **data) |
Private Member Functions | |
StaticTypedDurableTable (const StaticTypedDurableTable &) |
StaticTypedDurableTable::StaticTypedDurableTable | ( | DurableTableImpl * | impl, | |
const std::string & | name | |||
) | [inline] |
Constructor - We don't support caches for now.
These tables are usually small in size and have contents which need to be immediately durable, so this should not be a problem.
Definition at line 224 of file DurableTable.h.
StaticTypedDurableTable::StaticTypedDurableTable | ( | const StaticTypedDurableTable & | ) | [private] |
int StaticTypedDurableTable::put | ( | const SerializableObject & | key, | |
const _Type * | data, | |||
int | flags | |||
) | [inline] |
int StaticTypedDurableTable::get | ( | const SerializableObject & | key, | |
_Type ** | data | |||
) | [inline] |