16 template <
class _Prov
iderSegmentT>
55 _store(coreSeg, simulatedVersion);
86 std::shared_ptr<ProviderSegmentT>
103 return "LT-CoreSegment";
Interface functions for the longterm memory classes.
virtual bool _implForEachProviderSegment(std::function< void(ProviderSegmentT &)> func) const =0
virtual void _loadAllReferences(armem::wm::CoreSegment &)=0
virtual void _loadLatestNReferences(int n, armem::wm::CoreSegment &c)=0
_ProviderSegmentT ProviderSegmentT
void store(const armem::wm::CoreSegment &coreSeg, bool simulatedVersion)
encode the content of a wm::Memory and store
void resolve(armem::wm::CoreSegment &coreSeg)
convert the references of the input into a wm::Memory
std::shared_ptr< ProviderSegmentT > findProviderSegment(const std::string &providerSegmentName) const
find provider segment
void loadAllReferences(armem::wm::CoreSegment &coreSeg)
return the full sub-ltm as a wm::CoreSegment with only references the ltm may be huge,...
virtual void _store(const armem::wm::CoreSegment &c, bool simulatedVersion=false)=0
bool hasProviderSegment(const std::string &providerSegmentName) const
check if provider segment exists
void resetStatistics()
statistics
bool forEachProviderSegment(std::function< void(ProviderSegmentT &)> func) const
iterate over all provider segments of this ltm
virtual bool _implHasProviderSegment(const std::string &providerSegmentName) const =0
static std::string getLevelName()
get level name
virtual void _resolve(armem::wm::CoreSegment &)=0
aron::type::ObjectPtr aronType() const
get aron type
Statistics getStatistics() const
virtual std::shared_ptr< ProviderSegmentT > _implFindProviderSegment(const std::string &providerSegmentName) const =0
void loadLatestNReferences(int n, armem::wm::CoreSegment &coreSeg)
MemoryItem(const std::string &exportName, const MemoryID &)
MemoryItem(const std::string &exportName, const MemoryID &)
Client-side working memory core segment.
std::shared_ptr< Object > ObjectPtr
long recordedProviderSegments