Go to the documentation of this file.
16 template <
class InstanceT>
66 return "LT-EntitySnapshot";
70 virtual bool forEachInstance(std::function<
void(InstanceT&)> func)
const = 0;
76 virtual std::shared_ptr<InstanceT>
findInstance(
const int)
const = 0;
virtual bool forEachInstance(std::function< void(InstanceT &)> func) const =0
iterate over all Instance segments of this ltm
virtual void _loadAllReferences(armem::wm::EntitySnapshot &) const =0
static std::string getLevelName()
void loadAllReferences(armem::wm::EntitySnapshot &e) const
return the full sub-ltm as a wm::EntitySnapshot with only references the ltm may be huge,...
MemoryItem(const std::string &exportName, const MemoryID &)
Statistics getStatistics() const
Interface functions for the longterm memory classes.
virtual void _store(const armem::wm::EntitySnapshot &)=0
virtual std::shared_ptr< InstanceT > findInstance(const int) const =0
find Instance segment
Client-side working memory entity snapshot.
void resolve(armem::wm::EntitySnapshot &e) const
convert the references of the input into a wm::Memory
std::recursive_mutex ltm_mutex
void resetStatistics()
statistics
virtual void _resolve(armem::wm::EntitySnapshot &) const =0
virtual bool hasInstance(const int) const =0
check if Instance segment exists
Interface functions for the longterm memory classes.
void store(const armem::wm::EntitySnapshot &e)
encode the content of a wm::Memory and store