EntityInstance Class Reference

#include <RobotAPI/libraries/armem/server/ltm/EntityInstance.h>

+ Inheritance diagram for EntityInstance:

Public Member Functions

 EntityInstance (const std::string &exportName, const MemoryID &memoryId, const std::shared_ptr< Processors > &filters, const std::shared_ptr< persistence::MemoryPersistenceStrategy > &persistenceStrategy)
 
- Public Member Functions inherited from EntityInstanceBase
Statistics getStatistics () const
 
void loadAllReferences (armem::wm::EntitySnapshot &e) const
 return the full sub-ltm as a wm::EntitySnapshot with only references the ltm may be huge, use with caution
 
 MemoryItem (const std::string &exportName, const MemoryID &)
 
 MemoryItem (const std::string &exportName, const MemoryID &, const std::shared_ptr< Processors > &)
 
void resetStatistics ()
 statistics
 
void resolve (armem::wm::EntityInstance &e) const
 convert the references of the input into a wm::Memory
 
nlohmann::json store (const armem::wm::EntityInstance &e)
 encode the content of a wm::Memory and store
 
- 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
 

Protected Member Functions

void _implLoadAllReferences (armem::wm::EntitySnapshot &wmEntitySnapshot) const override
 
void _implResolve (armem::wm::EntityInstance &wmEntitySnapshot) const override
 
nlohmann::json _implStore (const armem::wm::EntityInstance &wmEntityInstance) override
 
- Protected Member Functions inherited from MemoryItem
virtual void _setExportName (const std::string &)
 
virtual void _setMemoryID (const MemoryID &)
 

Additional Inherited Members

- Static Public Member Functions inherited from EntityInstanceBase
static std::string getLevelName ()
 
- Protected Attributes inherited from EntityInstanceBase
Statistics statistics
 
- Protected Attributes inherited from MemoryItem
std::shared_ptr< Processorsprocessors
 

Detailed Description

Definition at line 10 of file EntityInstance.h.

Constructor & Destructor Documentation

◆ EntityInstance()

EntityInstance ( const std::string & exportName,
const MemoryID & memoryId,
const std::shared_ptr< Processors > & filters,
const std::shared_ptr< persistence::MemoryPersistenceStrategy > & persistenceStrategy )

Definition at line 16 of file EntityInstance.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _implLoadAllReferences()

void _implLoadAllReferences ( armem::wm::EntitySnapshot & wmEntitySnapshot) const
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 27 of file EntityInstance.cpp.

+ Here is the call graph for this function:

◆ _implResolve()

void _implResolve ( armem::wm::EntityInstance & wmEntitySnapshot) const
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 40 of file EntityInstance.cpp.

+ Here is the call graph for this function:

◆ _implStore()

nlohmann::json _implStore ( const armem::wm::EntityInstance & wmEntityInstance)
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 140 of file EntityInstance.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: