|
#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/BufferedMemoryMixin.h>
Public Member Functions | |
BufferedMemoryMixin (const MemoryID &id) | |
void | bufferFinished () |
void | directlyStore (const armem::server::wm::Memory &serverMemory) |
void | directlyStore (const armem::wm::Memory &memory) |
virtual | ~BufferedMemoryMixin ()=default |
Protected Member Functions | |
virtual void | _directlyStore (const armem::wm::Memory &memory)=0 |
void | addToBuffer (const armem::wm::Memory &memory) |
void | configureMixin (const nlohmann::json &json) |
configuration More... | |
void | createPropertyDefinitions (PropertyDefinitionsPtr &defs, const std::string &prefix) |
armem::wm::Memory | getBuffer () const |
void | setMixinMemoryID (const MemoryID &id) |
void | start () |
void | stop () |
void | storeBuffer () |
Protected Attributes | |
std::unique_ptr< armem::wm::Memory > | buffer |
Internal memory for data consolidated from wm to ltm (double-buffer) The to-put-to-ltm buffer (contains data in plain text) This buffer may still be filtered (e.g. More... | |
std::atomic_flag | storeFlag = ATOMIC_FLAG_INIT |
float | storeFrequency = 10 |
The frequency (Hz) to store data to the ltm. More... | |
std::unique_ptr< armem::wm::Memory > | to_store |
Definition at line 18 of file BufferedMemoryMixin.h.
|
inline |
Definition at line 22 of file BufferedMemoryMixin.h.
|
virtualdefault |
|
protectedpure virtual |
|
inlineprotected |
Definition at line 143 of file BufferedMemoryMixin.h.
|
inline |
Definition at line 50 of file BufferedMemoryMixin.h.
|
inlineprotected |
configuration
Definition at line 124 of file BufferedMemoryMixin.h.
|
inlineprotected |
Definition at line 135 of file BufferedMemoryMixin.h.
|
inline |
Definition at line 41 of file BufferedMemoryMixin.h.
|
inline |
|
inlineprotected |
Definition at line 92 of file BufferedMemoryMixin.h.
|
inlineprotected |
Definition at line 57 of file BufferedMemoryMixin.h.
|
inlineprotected |
Definition at line 66 of file BufferedMemoryMixin.h.
|
inlineprotected |
Definition at line 81 of file BufferedMemoryMixin.h.
|
inlineprotected |
|
protected |
Internal memory for data consolidated from wm to ltm (double-buffer) The to-put-to-ltm buffer (contains data in plain text) This buffer may still be filtered (e.g.
snapshot filters). This means that it is not guaranteed that all data in the buffer will be stored in the ltm
Definition at line 155 of file BufferedMemoryMixin.h.
|
protected |
Definition at line 157 of file BufferedMemoryMixin.h.
|
protected |
The frequency (Hz) to store data to the ltm.
Definition at line 160 of file BufferedMemoryMixin.h.
|
protected |
Definition at line 156 of file BufferedMemoryMixin.h.