#include <fcl_collision_geometry_cache.h>
Static Public Member Functions | |
static std::shared_ptr< fcl::CollisionGeometryd > | get (const std::shared_ptr< const tesseract_geometry::Geometry > &key) |
Retrieve the cache entry by key. More... | |
static void | insert (const std::shared_ptr< const tesseract_geometry::Geometry > &key, const std::shared_ptr< fcl::CollisionGeometryd > &value) |
Insert a new entry into the cache. More... | |
static void | prune () |
Remove any entries which are no longer valid. More... | |
Static Private Attributes | |
static std::map< boost::uuids::uuid, std::weak_ptr< fcl::CollisionGeometryd > > | cache_ |
The static cache. More... | |
static std::mutex | mutex_ |
The shared mutex for thread safety. More... | |
Definition at line 44 of file fcl_collision_geometry_cache.h.
|
static |
Retrieve the cache entry by key.
key | The cache key |
Definition at line 49 of file fcl_collision_geometry_cache.cpp.
|
static |
Insert a new entry into the cache.
key | The cache key |
value | The value to store |
Definition at line 40 of file fcl_collision_geometry_cache.cpp.
|
static |
Remove any entries which are no longer valid.
Definition at line 65 of file fcl_collision_geometry_cache.cpp.
|
staticprivate |
The static cache.
Definition at line 67 of file fcl_collision_geometry_cache.h.
|
staticprivate |
The shared mutex for thread safety.
Definition at line 69 of file fcl_collision_geometry_cache.h.