#include <MemoryStore.h>
Inheritance diagram for oasys::MemoryStore:
N.B: This is not durable unless you have a bunch of NVRAM.
Definition at line 95 of file MemoryStore.h.
Public Member Functions | |
MemoryStore (const char *logpath) | |
MemoryStore & | operator= (const MemoryStore &) |
MemoryStore (const MemoryStore &) | |
~MemoryStore () | |
int | init (const StorageConfig &cfg) |
Virtual from DurableStoreImpl Initialize MemoryStore. | |
int | get_table (DurableTableImpl **table, const std::string &name, int flags, PrototypeVector &prototypes) |
Virtual from DurableStoreImpl Initialize MemoryStore. | |
int | del_table (const std::string &name) |
Virtual from DurableStoreImpl Initialize MemoryStore. | |
int | get_table_names (StringVector *names) |
Virtual from DurableStoreImpl Initialize MemoryStore. | |
std::string | get_info () const |
Virtual from DurableStoreImpl Initialize MemoryStore. | |
Private Types | |
typedef StringMap< MemoryTable::ItemMap > | TableMap |
Private Attributes | |
bool | init_ |
Initialized? | |
TableMap | tables_ |
Friends | |
class | MemoryTable |
typedef StringMap<MemoryTable::ItemMap> oasys::MemoryStore::TableMap [private] |
Definition at line 124 of file MemoryStore.h.
oasys::MemoryStore::MemoryStore | ( | const char * | logpath | ) |
Definition at line 38 of file MemoryStore.cc.
oasys::MemoryStore::MemoryStore | ( | const MemoryStore & | ) |
oasys::MemoryStore::~MemoryStore | ( | ) |
MemoryStore& oasys::MemoryStore::operator= | ( | const MemoryStore & | ) |
int oasys::MemoryStore::init | ( | const StorageConfig & | cfg | ) | [virtual] |
Virtual from DurableStoreImpl Initialize MemoryStore.
Implements oasys::DurableStoreImpl.
Definition at line 49 of file MemoryStore.cc.
References init_, tables_, and oasys::StorageConfig::tidy_.
int oasys::MemoryStore::get_table | ( | DurableTableImpl ** | table, | |
const std::string & | name, | |||
int | flags, | |||
PrototypeVector & | prototypes | |||
) |
Virtual from DurableStoreImpl Initialize MemoryStore.
Definition at line 61 of file MemoryStore.cc.
References oasys::DS_CREATE, oasys::DS_EXCL, oasys::DS_EXISTS, oasys::DS_MULTITYPE, oasys::DS_NOTFOUND, oasys::DS_OK, oasys::Logger::logpath_, MemoryTable, and tables_.
int oasys::MemoryStore::del_table | ( | const std::string & | name | ) | [virtual] |
Virtual from DurableStoreImpl Initialize MemoryStore.
Implements oasys::DurableStoreImpl.
Definition at line 94 of file MemoryStore.cc.
int oasys::MemoryStore::get_table_names | ( | StringVector * | names | ) | [virtual] |
Virtual from DurableStoreImpl Initialize MemoryStore.
Implements oasys::DurableStoreImpl.
Definition at line 103 of file MemoryStore.cc.
References tables_.
std::string oasys::MemoryStore::get_info | ( | ) | const [virtual] |
Virtual from DurableStoreImpl Initialize MemoryStore.
Implements oasys::DurableStoreImpl.
Definition at line 117 of file MemoryStore.cc.
friend class MemoryTable [friend] |
bool oasys::MemoryStore::init_ [private] |
TableMap oasys::MemoryStore::tables_ [private] |
Definition at line 125 of file MemoryStore.h.
Referenced by del_table(), get_table(), get_table_names(), and init().