|  | 
Interface functions for the longterm memory classes. More...
#include <RobotAPI/libraries/armem/server/ltm/detail/MemoryBase.h>
 Inheritance diagram for MemoryBase< _CoreSegmentT >:
 Inheritance diagram for MemoryBase< _CoreSegmentT >:| 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::shared_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 () | 
| RecordingMode | getRecordingMode () const | 
| 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 | setRecordingMode (const RecordingMode m) | 
| void | setRecordingMode (const std::string &m) | 
| 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, bool simulatedVersion=false)=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 | 
| RecordingMode | recordingMode = RecordingMode::CONSOLIDATE_REMOVED | 
| Statistics | statistics | 
|  Protected Attributes inherited from MemoryItem | |
| std::shared_ptr< Processors > | processors | 
Interface functions for the longterm memory classes.
Definition at line 39 of file MemoryBase.h.
| using CoreSegmentT = _CoreSegmentT | 
Definition at line 55 of file MemoryBase.h.
| 
 | inline | 
Definition at line 57 of file MemoryBase.h.
| 
 | inlineprotectedvirtual | 
configuration
Reimplemented in Memory.
Definition at line 376 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protectedpure virtual | 
| 
 | inlineprotectedvirtual | 
Reimplemented in Memory.
Definition at line 386 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlineprotectedvirtual | 
Reimplemented in Memory.
Definition at line 381 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protectedpure virtual | 
| 
 | protectedpure virtual | 
| 
 | protectedpure virtual | 
Implemented in Memory.
| 
 | protectedpure virtual | 
| 
 | protectedpure virtual | 
| 
 | inlineprotectedvirtual | 
Reimplemented from MemoryItem.
Reimplemented in Memory.
Definition at line 391 of file MemoryBase.h.
| 
 | protectedpure virtual | 
Implemented in Memory.
| 
 | inline | 
initialize config
Definition at line 97 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlinevirtual | 
default parameters. Implementation should use the configuration to configure
Reimplemented in Memory.
Definition at line 278 of file MemoryBase.h.
| 
 | inline | 
disable this LTM
Definition at line 149 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
enable this LTM
Definition at line 130 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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 339 of file MemoryBase.h.
| 
 | inlinestatic | 
get level name1
Definition at line 361 of file MemoryBase.h.
| 
 | inline | 
Definition at line 90 of file MemoryBase.h.
| 
 | inline | 
Definition at line 333 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 213 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 221 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 167 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 175 of file MemoryBase.h.
| 
 | inline | 
| 
 | inline | 
Definition at line 203 of file MemoryBase.h.
| 
 | inline | 
Definition at line 195 of file MemoryBase.h.
| 
 | inline | 
Definition at line 367 of file MemoryBase.h.
| 
 | inlinevirtual | 
statistics
Definition at line 325 of file MemoryBase.h.
| 
 | inline | 
convert the references of the input into a wm::Memory
Definition at line 231 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 84 of file MemoryBase.h.
| 
 | inline | 
| 
 | inline | 
enable/disable
Definition at line 303 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 311 of file MemoryBase.h.
| 
 | inline | 
append a wm::Memory instance to the ltm
Definition at line 260 of file MemoryBase.h.
| 
 | inline | 
append a wm::Memory instance to the ltm
Definition at line 240 of file MemoryBase.h.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 447 of file MemoryBase.h.
| 
 | mutableprotected | 
Definition at line 443 of file MemoryBase.h.
| 
 | protected | 
Definition at line 449 of file MemoryBase.h.
| 
 | mutableprotected | 
Definition at line 445 of file MemoryBase.h.