Go to the documentation of this file.
15 template <
class _EntityT>
73 virtual bool hasEntity(
const std::string&)
const = 0;
76 virtual std::shared_ptr<EntityT>
findEntity(
const std::string&)
const = 0;
87 return "LT-ProviderSegment";
void resetStatistics()
statistics
virtual bool hasEntity(const std::string &) const =0
check if entity segment exists
Client-side working memory provider segment.
aron::type::ObjectPtr aronType() const
get aron type
A memory storing data in mongodb (needs 'armarx memory start' to start the mongod instance)
std::recursive_mutex ltm_mutex
Statistics getStatistics() const
virtual void _loadAllReferences(armem::wm::ProviderSegment &)=0
MemoryItem(const std::string &exportName, const MemoryID &)
virtual std::shared_ptr< EntityT > findEntity(const std::string &) const =0
find entity segment
void loadAllReferences(armem::wm::ProviderSegment &provSeg)
return the full sub-ltm as a wm::ProviderSegment with only references the ltm may be huge,...
void loadLatestNReferences(int n, armem::wm::ProviderSegment &provSeg)
virtual bool forEachEntity(std::function< void(EntityT &)> func) const =0
iterate over all core segments of this ltm
virtual void _resolve(armem::wm::ProviderSegment &)=0
static std::string getLevelName()
void resolve(armem::wm::ProviderSegment &provSeg)
convert the references of the input into a wm::Memory
virtual void _loadLatestNReferences(int n, armem::wm::ProviderSegment &p)=0
Interface functions for the longterm memory classes.
std::shared_ptr< Object > ObjectPtr
void store(const armem::wm::ProviderSegment &provSeg)
encode the content of a wm::Memory and store
virtual void _store(const armem::wm::ProviderSegment &)=0
Interface functions for the longterm memory classes.