Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
mrpt::maps::internal::TMetricMapTypesRegistry Struct Reference

Detailed Description

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 > > 

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::TMetricMapInitializerfactoryMapDefinition (const std::string &className) const
 Return NULL if not found. More...
mrpt::maps::CMetricMapfactoryMapObjectFromDefinition (const mrpt::maps::TMetricMapInitializer &mi) const
 Return NULL if not found. More...
const TListRegisteredMapsgetAllRegistered () const

Static Public Member Functions

static TMetricMapTypesRegistryInstance ()

Private Member Functions

 TMetricMapTypesRegistry ()

Private Attributes

TListRegisteredMaps m_registry

Member Typedef Documentation

Definition at line 36 of file TMetricMapTypesRegistry.h.

Constructor & Destructor Documentation

mrpt::maps::internal::TMetricMapTypesRegistry::TMetricMapTypesRegistry ( )

Definition at line 39 of file TMetricMapTypesRegistry.h.

Member Function Documentation

size_t 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)

Definition at line 28 of file TMetricMapTypesRegistry.cpp.

References mrpt::system::tokenize().

mrpt::maps::TMetricMapInitializer * TMetricMapTypesRegistry::factoryMapDefinition ( const std::string className) const

Return NULL if not found.

Definition at line 37 of file TMetricMapTypesRegistry.cpp.

References ASSERT_.

mrpt::maps::CMetricMap * TMetricMapTypesRegistry::factoryMapObjectFromDefinition ( const mrpt::maps::TMetricMapInitializer mi) const
const TListRegisteredMaps& mrpt::maps::internal::TMetricMapTypesRegistry::getAllRegistered ( ) const

Definition at line 37 of file TMetricMapTypesRegistry.h.

TMetricMapTypesRegistry & TMetricMapTypesRegistry::Instance ( )

Member Data Documentation

TListRegisteredMaps mrpt::maps::internal::TMetricMapTypesRegistry::m_registry

Definition at line 40 of file TMetricMapTypesRegistry.h.

Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018