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 39 of file GlobalCache.h.

Constructor & Destructor Documentation

◆ GlobalCache() [1/2]

template<class ObjectTypePtr, class Id = std::string>
GlobalCache ( )
inline

Definition at line 42 of file GlobalCache.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GlobalCache() [2/2]

template<class ObjectTypePtr, class Id = std::string>
GlobalCache ( const GlobalCache< ObjectTypePtr, Id > & source)
inline

Definition at line 48 of file GlobalCache.h.

+ Here is the call graph for this function:

◆ ~GlobalCache()

template<class ObjectTypePtr, class Id = std::string>
~GlobalCache ( )
inline

Definition at line 54 of file GlobalCache.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ getCache()

template<class ObjectTypePtr, class Id = std::string>
std::map< Id, ObjectTypePtr > & getCache ( ) const
inlineprotected

Definition at line 118 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ getCacheObject()

template<class ObjectTypePtr, class Id = std::string>
ObjectTypePtr getCacheObject ( const Id & id)
inline

Definition at line 74 of file GlobalCache.h.

+ Here is the call graph for this function:

◆ getInstanceCounter()

template<class ObjectTypePtr, class Id = std::string>
std::atomic< int > & getInstanceCounter ( )
inlineprotected

Definition at line 104 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ getMapLock()

template<class ObjectTypePtr, class Id = std::string>
ScopedLockPtr getMapLock ( ) const
inlineprotected

Definition at line 111 of file GlobalCache.h.

+ Here is the caller graph for this function:

◆ hasObject()

template<class ObjectTypePtr, class Id = std::string>
bool hasObject ( const Id & id) const
inline

Definition at line 67 of file GlobalCache.h.

+ Here is the call graph for this function:

◆ insertObject()

template<class ObjectTypePtr, class Id = std::string>
void insertObject ( const Id & id,
const ObjectTypePtr & obj )
inline

Definition at line 90 of file GlobalCache.h.

+ Here is the call graph for this function:

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