CachedMemoryMixin< _CoreSegmentT > Class Template Reference

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/CachedMemoryMixin.h>

Public Member Functions

 CachedMemoryMixin (const MemoryID &id)
 

Protected Member Functions

void addToCache (const armem::wm::Memory &memory)
 
bool cacheHasCoreSegment (const MemoryID &n) const
 
bool cacheHasCoreSegment (const std::string &n) const
 
bool cacheHasEntity (const MemoryID &n) const
 
bool cacheHasEntityInstance (const MemoryID &n) const
 
bool cacheHasEntitySnapshot (const MemoryID &n) const
 
bool cacheHasProviderSegment (const MemoryID &n) const
 
void configureMixin (const nlohmann::json &json)
 configuration More...
 
armem::wm::Memory getCache () const
 
void setMixinMemoryID (const MemoryID &id)
 

Protected Attributes

std::unique_ptr< armem::wm::Memorycache
 

Detailed Description

template<class _CoreSegmentT>
class armarx::armem::server::ltm::detail::mixin::CachedMemoryMixin< _CoreSegmentT >

Definition at line 12 of file CachedMemoryMixin.h.

Constructor & Destructor Documentation

◆ CachedMemoryMixin()

CachedMemoryMixin ( const MemoryID id)
inline

Definition at line 15 of file CachedMemoryMixin.h.

Member Function Documentation

◆ addToCache()

void addToCache ( const armem::wm::Memory memory)
inlineprotected

Definition at line 43 of file CachedMemoryMixin.h.

◆ cacheHasCoreSegment() [1/2]

bool cacheHasCoreSegment ( const MemoryID n) const
inlineprotected

Definition at line 57 of file CachedMemoryMixin.h.

◆ cacheHasCoreSegment() [2/2]

bool cacheHasCoreSegment ( const std::string &  n) const
inlineprotected

Definition at line 50 of file CachedMemoryMixin.h.

◆ cacheHasEntity()

bool cacheHasEntity ( const MemoryID n) const
inlineprotected

Definition at line 71 of file CachedMemoryMixin.h.

◆ cacheHasEntityInstance()

bool cacheHasEntityInstance ( const MemoryID n) const
inlineprotected

Definition at line 85 of file CachedMemoryMixin.h.

◆ cacheHasEntitySnapshot()

bool cacheHasEntitySnapshot ( const MemoryID n) const
inlineprotected

Definition at line 78 of file CachedMemoryMixin.h.

◆ cacheHasProviderSegment()

bool cacheHasProviderSegment ( const MemoryID n) const
inlineprotected

Definition at line 64 of file CachedMemoryMixin.h.

◆ configureMixin()

void configureMixin ( const nlohmann::json &  json)
inlineprotected

configuration

Definition at line 29 of file CachedMemoryMixin.h.

◆ getCache()

armem::wm::Memory getCache ( ) const
inlineprotected

Definition at line 21 of file CachedMemoryMixin.h.

◆ setMixinMemoryID()

void setMixinMemoryID ( const MemoryID id)
inlineprotected

Definition at line 35 of file CachedMemoryMixin.h.

Member Data Documentation

◆ cache

std::unique_ptr<armem::wm::Memory> cache
protected

Definition at line 93 of file CachedMemoryMixin.h.


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