|
Interface functions for the longterm memory classes. More...
#include <RobotAPI/libraries/armem/server/ltm/detail/MemoryBase.h>
Classes | |
struct | Properties |
struct | Statistics |
Public Types | |
using | CoreSegmentT = _CoreSegmentT |
Public Member Functions | |
void | configure () |
initialize config More... | |
virtual void | createPropertyDefinitions (PropertyDefinitionsPtr &defs, const std::string &prefix) |
default parameters. Implementation should use the configuration to configure More... | |
void | disable () |
disable this LTM More... | |
void | enable () |
enable this LTM More... | |
virtual std::unique_ptr< CoreSegmentT > | findCoreSegment (const std::string &) const =0 |
find core segment More... | |
virtual bool | forEachCoreSegment (std::function< void(CoreSegmentT &)> func) const =0 |
iterate over all core segments of this ltm More... | |
std::map< std::string, processor::SnapshotFilter::FilterStatistics > | getFilterStatistics () |
Statistics | getStatistics () const |
virtual bool | hasCoreSegment (const std::string &) const =0 |
check if core segment exists More... | |
bool | isRecording () const |
armem::wm::Memory | loadAllAndResolve () |
return the full ltm as a wm::Memory and resolves the references the ltm may be huge, use with caution More... | |
void | loadAllAndResolve (armem::wm::Memory &memory) |
armem::wm::Memory | loadAllReferences () |
return the full ltm as a wm::Memory with only references the ltm may be huge, use with caution More... | |
void | loadAllReferences (armem::wm::Memory &memory) |
armem::wm::Memory | loadLatestNReferences (int n) |
void | loadLatestNReferences (int n, armem::wm::Memory &memory) |
void | loadLatestNReferences (int n, armem::wm::Memory &memory, std::list< std::string > coreSegNames) |
void | loadOnStartup () |
MemoryBase (const std::string &exportName, const MemoryID &id) | |
virtual void | resetStatistics () |
statistics More... | |
void | resolve (armem::wm::Memory &memory) |
convert the references of the input into a wm::Memory More... | |
void | startRecording () |
enable/disable More... | |
void | stopRecording () |
void | store (const armem::server::wm::Memory &serverMemory) |
append a wm::Memory instance to the ltm More... | |
void | store (const armem::wm::Memory &memory) |
append a wm::Memory instance to the ltm More... | |
Public Member Functions inherited from MemoryItem | |
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 |
Static Public Member Functions | |
static std::string | getLevelName () |
get level name1 More... | |
Public Attributes | |
struct armarx::armem::server::ltm::detail::MemoryBase::Properties | p |
Protected Member Functions | |
virtual void | _configure (const nlohmann::json &) |
configuration More... | |
virtual void | _directlyStore (const armem::wm::Memory &memory)=0 |
virtual void | _disable () |
virtual void | _enable () |
virtual void | _loadAllReferences (armem::wm::Memory &memory)=0 |
virtual void | _loadLatestNReferences (int n, armem::wm::Memory &memory)=0 |
virtual void | _loadLatestNReferences (int n, armem::wm::Memory &memory, std::list< std::string > coreSegNames)=0 |
virtual void | _loadOnStartup ()=0 |
virtual void | _resolve (armem::wm::Memory &memory)=0 |
virtual void | _setExportName (const std::string &) |
virtual void | _store (const armem::wm::Memory &memory)=0 |
Protected Member Functions inherited from MemoryItem | |
virtual void | _setMemoryID (const MemoryID &) |
Protected Attributes | |
std::atomic_bool | enabled = true |
std::recursive_mutex | ltm_mutex |
Statistics | statistics |
Protected Attributes inherited from MemoryItem | |
std::shared_ptr< Processors > | processors |
Interface functions for the longterm memory classes.
Definition at line 28 of file MemoryBase.h.
using CoreSegmentT = _CoreSegmentT |
Definition at line 44 of file MemoryBase.h.
|
inline |
Definition at line 46 of file MemoryBase.h.
|
inlineprotectedvirtual |
configuration
Reimplemented in Memory.
Definition at line 318 of file MemoryBase.h.
|
protectedpure virtual |
|
inlineprotectedvirtual |
Reimplemented in Memory.
Definition at line 328 of file MemoryBase.h.
|
inlineprotectedvirtual |
Reimplemented in Memory.
Definition at line 323 of file MemoryBase.h.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in Memory.
|
protectedpure virtual |
|
protectedpure virtual |
|
inlineprotectedvirtual |
Reimplemented from MemoryItem.
Reimplemented in Memory.
Definition at line 333 of file MemoryBase.h.
|
protectedpure virtual |
Implemented in Memory.
|
inline |
initialize config
Definition at line 53 of file MemoryBase.h.
|
inlinevirtual |
default parameters. Implementation should use the configuration to configure
Reimplemented in Memory.
Definition at line 232 of file MemoryBase.h.
|
inline |
disable this LTM
Definition at line 105 of file MemoryBase.h.
|
inline |
enable this LTM
Definition at line 86 of file MemoryBase.h.
|
pure virtual |
find core segment
Implemented in Memory.
|
pure virtual |
iterate over all core segments of this ltm
Implemented in Memory.
|
inline |
Definition at line 282 of file MemoryBase.h.
|
inlinestatic |
get level name1
Definition at line 304 of file MemoryBase.h.
|
inline |
Definition at line 276 of file MemoryBase.h.
|
pure virtual |
check if core segment exists
Implemented in Memory.
|
inline |
|
inline |
return the full ltm as a wm::Memory and resolves the references the ltm may be huge, use with caution
Definition at line 168 of file MemoryBase.h.
|
inline |
Definition at line 176 of file MemoryBase.h.
|
inline |
return the full ltm as a wm::Memory with only references the ltm may be huge, use with caution
Definition at line 123 of file MemoryBase.h.
|
inline |
Definition at line 131 of file MemoryBase.h.
|
inline |
|
inline |
Definition at line 157 of file MemoryBase.h.
|
inline |
Definition at line 150 of file MemoryBase.h.
|
inline |
Definition at line 310 of file MemoryBase.h.
|
inlinevirtual |
statistics
Definition at line 268 of file MemoryBase.h.
|
inline |
convert the references of the input into a wm::Memory
Definition at line 186 of file MemoryBase.h.
|
inline |
enable/disable
Definition at line 246 of file MemoryBase.h.
|
inline |
Definition at line 254 of file MemoryBase.h.
|
inline |
append a wm::Memory instance to the ltm
Definition at line 214 of file MemoryBase.h.
|
inline |
append a wm::Memory instance to the ltm
Definition at line 195 of file MemoryBase.h.
|
protected |
Definition at line 368 of file MemoryBase.h.
|
mutableprotected |
Definition at line 364 of file MemoryBase.h.
|
mutableprotected |
Definition at line 366 of file MemoryBase.h.