|
| EntityInstance (const detail::mixin::Path &, const detail::mixin::MongoDBSettings &, const std::string &, const MemoryID &id, const std::shared_ptr< Processors > &p) |
|
Statistics | getStatistics () const |
|
void | loadAllReferences (armem::wm::EntitySnapshot &e) const |
| return the full sub-ltm as a wm::EntitySnapshot with only references the ltm may be huge, use with caution More...
|
|
| MemoryItem (const std::string &exportName, const MemoryID &) |
|
| MemoryItem (const std::string &exportName, const MemoryID &, const std::shared_ptr< Processors > &) |
|
void | resetStatistics () |
| statistics More...
|
|
void | resolve (armem::wm::EntityInstance &e) const |
| convert the references of the input into a wm::Memory More...
|
|
nlohmann::json | store (const armem::wm::EntityInstance &e) |
| encode the content of a wm::Memory and store More...
|
|
virtual std::string | getExportName () const |
|
MemoryID | getMemoryID () const |
|
MemoryID | id () const |
|
| MemoryItem (const std::string &exportName, const MemoryID &) |
|
| MemoryItem (const std::string &exportName, const MemoryID &, const std::shared_ptr< Processors > &) |
|
std::string | name () const |
|
void | setExportName (const std::string &n) |
|
void | setMemoryID (const MemoryID &) |
|
void | setMemoryName (const std::string &memoryName) |
|
virtual | ~MemoryItem ()=default |
|
void | createPropertyDefinitions (PropertyDefinitionsPtr &defs, const std::string &prefix) |
|
| DiskMemoryItemMixin ()=default |
|
| DiskMemoryItemMixin (const Path &memoryParentPath, const std::string &exportName, const armem::MemoryID &id) |
|
void | ensureFileExists (const std::string &filename, bool createIfNotExistent=false) const |
|
void | ensureFullPathExists (bool createIfNotExistent=false) const |
|
void | ensureMemoryBasePathExists (bool createIfNotExistent=false) const |
|
bool | fileExists (const std::string &filename) const |
|
bool | fullPathExists () const |
|
std::vector< Path > | getAllDirectories () const |
|
std::vector< Path > | getAllFiles () const |
|
Path | getFullPath () const |
|
Path | getMemoryBasePath () const |
|
bool | memoryBasePathExists () const |
|
std::vector< unsigned char > | readDataFromFile (const std::string &filename) const |
|
void | writeDataToFile (const std::string &filename, const std::vector< unsigned char > &data) const |
|
virtual | ~DiskMemoryItemMixin ()=default |
|
std::optional< mongocxx::collection > | collectionExists () const |
|
std::optional< mongocxx::database > | databaseExists () const |
|
std::optional< nlohmann::json > | documentExists () const |
|
std::optional< nlohmann::json > | documentExists (const std::string &id) const |
|
mongocxx::collection | ensureCollectionExists (bool createIfNotExistent=false) |
|
mongocxx::database | ensureDatabaseExists (bool createIfNotExistent=false) |
|
nlohmann::json | ensureDocumentExists (bool createIfNotExistent=false) |
|
nlohmann::json | ensureDocumentExists (const std::string &id, bool createIfNotExistent=false) |
|
mongocxx::collection | ensurePreviousCollectionExists (bool createIfNotExistent=false) |
|
std::vector< nlohmann::json > | getAllDocuments () const |
|
std::string | getCollectionName () const |
|
std::string | getDatabaseName () const |
|
std::string | getDocumentName () const |
|
std::string | getPreviousCollectionName () const |
|
MongoDBSettings | getSettings () const |
|
| MongoDBStorageMixin ()=default |
|
| MongoDBStorageMixin (const MongoDBSettings &settings, const std::string &exportName, const armem::MemoryID &id) |
|
std::optional< mongocxx::collection > | previousCollectionExists () const |
|
nlohmann::json | readDataFromDocument () const |
|
nlohmann::json | readDataFromDocument (const std::string &id) const |
|
void | writeDataToDocument (const nlohmann::json &data) |
|
void | writeDataToDocument (const std::string &id, const nlohmann::json &data) |
|
void | writeForeignKeyToPreviousDocument () |
|
void | writeForeignKeyToPreviousDocument (const nlohmann::json &type) |
|
Definition at line 13 of file EntityInstance.h.