Class factory & registry for map classes.
Used from mrpt::maps::TMetricMapInitializer
Definition at line 29 of file TMetricMapTypesRegistry.h.
#include <mrpt/maps/TMetricMapTypesRegistry.h>
Public Types | |
typedef std::map< std::string, std::pair< MapDefCtorFunctor, MapCtorFromDefFunctor > > | TListRegisteredMaps |
Public Member Functions | |
size_t | doRegister (const std::string &name, MapDefCtorFunctor func1, MapCtorFromDefFunctor func2) |
Return the index of the class in the list (not important, just used as a trick to initialize static members) More... | |
mrpt::maps::TMetricMapInitializer * | factoryMapDefinition (const std::string &className) const |
Return NULL if not found. More... | |
mrpt::maps::CMetricMap * | factoryMapObjectFromDefinition (const mrpt::maps::TMetricMapInitializer &mi) const |
Return NULL if not found. More... | |
const TListRegisteredMaps & | getAllRegistered () const |
Static Public Member Functions | |
static TMetricMapTypesRegistry & | Instance () |
Private Member Functions | |
TMetricMapTypesRegistry () | |
Private Attributes | |
TListRegisteredMaps | m_registry |
typedef std::map<std::string,std::pair<MapDefCtorFunctor,MapCtorFromDefFunctor> > mrpt::maps::internal::TMetricMapTypesRegistry::TListRegisteredMaps |
Definition at line 36 of file TMetricMapTypesRegistry.h.
|
inlineprivate |
Definition at line 39 of file TMetricMapTypesRegistry.h.
size_t mrpt::maps::internal::TMetricMapTypesRegistry::doRegister | ( | const std::string & | name, |
MapDefCtorFunctor | func1, | ||
MapCtorFromDefFunctor | func2 | ||
) |
Return the index of the class in the list (not important, just used as a trick to initialize static members)
mrpt::maps::TMetricMapInitializer* mrpt::maps::internal::TMetricMapTypesRegistry::factoryMapDefinition | ( | const std::string & | className | ) | const |
Return NULL if not found.
mrpt::maps::CMetricMap* mrpt::maps::internal::TMetricMapTypesRegistry::factoryMapObjectFromDefinition | ( | const mrpt::maps::TMetricMapInitializer & | mi | ) | const |
Return NULL if not found.
|
inline |
Definition at line 37 of file TMetricMapTypesRegistry.h.
|
static |
|
private |
Definition at line 40 of file TMetricMapTypesRegistry.h.
Page generated by Doxygen 1.9.1 for MRPT 1.4.0 SVN: at Fri Sep 3 01:11:30 UTC 2021 |