Main MRPT website > C++ reference for MRPT 1.5.9
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 > > 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::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

◆ TListRegisteredMaps

Definition at line 36 of file TMetricMapTypesRegistry.h.

Constructor & Destructor Documentation

◆ TMetricMapTypesRegistry()

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

Definition at line 39 of file TMetricMapTypesRegistry.h.

Member Function Documentation

◆ doRegister()

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().

◆ factoryMapDefinition()

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

◆ factoryMapObjectFromDefinition()

mrpt::maps::CMetricMap * TMetricMapTypesRegistry::factoryMapObjectFromDefinition ( const mrpt::maps::TMetricMapInitializer mi) const

◆ getAllRegistered()

const TListRegisteredMaps& mrpt::maps::internal::TMetricMapTypesRegistry::getAllRegistered ( ) const

Definition at line 37 of file TMetricMapTypesRegistry.h.

◆ Instance()

TMetricMapTypesRegistry & TMetricMapTypesRegistry::Instance ( )

Member Data Documentation

◆ m_registry

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

Definition at line 40 of file TMetricMapTypesRegistry.h.

Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020