Go to the documentation of this file.
15 const std::string& exportName,
17 const std::shared_ptr<Processors>& filters) :
18 EntitySnapshotBase(exportName, id, filters),
19 DiskMemoryItemMixin(p, exportName, id),
20 MongoDBStorageMixin(
s, exportName, id)
55 id().withInstanceIndex(std::stoi(i.filename())).cleanID(),
83 id().withInstanceIndex(
index),
85 return c.fullPathExists();
91 std::shared_ptr<EntityInstance>
103 id().withInstanceIndex(
index),
130 id().withInstanceIndex(e.id().instanceIndex),
143 if (
id().timestamp.isInvalid())
146 <<
"During storage of segment '" << p.
id().
str()
147 <<
"' I noticed that the corresponding LTM has no id set. "
148 <<
"I set the id of the LTM to the same name, however this should not happen!";
167 id().withInstanceIndex(e.id().instanceIndex),
armem::wm::EntityInstance EntityInstance
bool hasInstance(const int) const override
check if Instance segment exists
std::shared_ptr< Processors > processors
bool forEachInstance(std::function< void(EntityInstance &)> func) const override
iterate over all Instance segments of this ltm
Path getMemoryBasePath() const
bool forEachInstance(InstanceFunctionT &&func)
std::string str(bool escapeDelimiters=true) const
Get a string representation of this memory ID.
EntitySnapshot(const detail::mixin::Path &, const detail::mixin::MongoDBSettings &, const std::string &, const MemoryID &id, const std::shared_ptr< Processors > &p)
std::shared_ptr< EntityInstance > findInstance(const int) const override
find Instance segment
std::vector< Path > getAllDirectories() const
MemoryID getEntitySnapshotID() const
MongoDBSettings getSettings() const
virtual std::string getExportName() const
Client-side working memory entity snapshot.
std::recursive_mutex ltm_mutex
void _store(const armem::wm::EntitySnapshot &) override
bool fullPathExists() const
std::filesystem::path Path
void _loadAllReferences(armem::wm::EntitySnapshot &) const override
void _resolve(armem::wm::EntitySnapshot &) const override
double s(double t, double s0, double v0, double a0, double j)
void loadAllReferences(armem::wm::EntitySnapshot &e) const
return the full sub-ltm as a wm::EntitySnapshot with only references the ltm may be huge,...