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
 

Constructor & Destructor Documentation

◆ GlobalCache() [1/2]

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

◆ GlobalCache() [2/2]

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

◆ ~GlobalCache()

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

Member Function Documentation

◆ getCache()

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

◆ getCacheObject()

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

◆ getInstanceCounter()

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

◆ getMapLock()

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

◆ hasObject()

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

◆ insertObject()

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

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