GlobalCache< ObjectTypePtr, Id > Class Template Reference

#include <RobotComponents/components/MotionPlanning/CSpace/GlobalCache.h>

Public Member Functions

ObjectTypePtr getCacheObject (const Id &id)
 
 GlobalCache ()
 
 GlobalCache (const GlobalCache &source)
 
bool hasObject (const Id &id) const
 
void insertObject (const Id &id, const ObjectTypePtr &obj)
 
 ~GlobalCache ()
 

Protected Member Functions

std::map< Id, ObjectTypePtr > & getCache () const
 
std::atomic< int > & getInstanceCounter ()
 
ScopedLockPtr getMapLock () const
 

Detailed Description

template<class ObjectTypePtr, class Id = std::string>
class armarx::GlobalCache< ObjectTypePtr, Id >

Definition at line 38 of file GlobalCache.h.

Constructor & Destructor Documentation

◆ GlobalCache() [1/2]

GlobalCache ( )
inline

Definition at line 41 of file GlobalCache.h.

◆ GlobalCache() [2/2]

GlobalCache ( const GlobalCache< ObjectTypePtr, Id > &  source)
inline

Definition at line 46 of file GlobalCache.h.

◆ ~GlobalCache()

~GlobalCache ( )
inline

Definition at line 52 of file GlobalCache.h.

Member Function Documentation

◆ getCache()

std::map<Id, ObjectTypePtr>& getCache ( ) const
inlineprotected

Definition at line 107 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ getCacheObject()

ObjectTypePtr getCacheObject ( const Id &  id)
inline

Definition at line 68 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ getInstanceCounter()

std::atomic<int>& getInstanceCounter ( )
inlineprotected

Definition at line 95 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ getMapLock()

ScopedLockPtr getMapLock ( ) const
inlineprotected

Definition at line 101 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ hasObject()

bool hasObject ( const Id &  id) const
inline

Definition at line 63 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ insertObject()

void insertObject ( const Id &  id,
const ObjectTypePtr &  obj 
)
inline

Definition at line 83 of file GlobalCache.h.

+ Here is the caller graph for this function:

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