37 #ifndef OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ 38 #define OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ 41 #include "ompl/geometric/planners/bitstar/BITstar.h" 46 #include <boost/scoped_ptr.hpp> 70 std::lock_guard<std::mutex> lockGuard(idMutex_);
92 static std::once_flag g_IdInited;
94 static boost::scoped_ptr<ompl::geometric::BITstar::IdGenerator> g_IdGenerator;
97 void initIdGenerator()
105 std::call_once(g_IdInited, &initIdGenerator);
106 return *g_IdGenerator;
109 #endif //OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ Main namespace. Contains everything in this library.
BITstar::VertexId getNewId()
Generator a new id and increment the global/static counter of IDs.
An ID generator class for vertex IDs.
unsigned int VertexId
The vertex id type.