23 class TSetOfMetricMapInitializers;
74 std::deque<TMetricMapInitializerPtr>
m_list;
80 template <
typename MAP_DEFINITION>
85 size_t size()
const {
return m_list.size(); }
86 typedef std::deque<TMetricMapInitializerPtr>::iterator
iterator;
92 void clear() { m_list.clear(); }
Common params to all maps derived from mrpt::maps::CMetricMap
A set of TMetricMapInitializer structures, passed to the constructor CMultiMetricMap::CMultiMetricMap...
std::deque< TMetricMapInitializerPtr >::iterator iterator
TSetOfMetricMapInitializers()
std::deque< TMetricMapInitializerPtr > m_list
void loadFromConfigFile(const mrpt::utils::CConfigFileBase &source, const std::string §ionName) MRPT_OVERRIDE
Loads the configuration for the set of internal maps from a textual definition in an INI-like file.
void push_back(const TMetricMapInitializerPtr &o)
const_iterator end() const
void push_back(const MAP_DEFINITION &o)
std::deque< TMetricMapInitializerPtr >::const_iterator const_iterator
const_iterator begin() const
void dumpToTextStream(mrpt::utils::CStream &out) const MRPT_OVERRIDE
This method dumps the options of the multi-metric map AND those of every internal map.
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
stlplus::smart_ptr_clone< TMetricMapInitializer > TMetricMapInitializerPtr
Smart pointer to TMetricMapInitializer.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Virtual base for specifying the kind and parameters of one map (normally, to be inserted into mrpt::m...
static TMetricMapInitializer * factory(const std::string &mapClassName)
Looks up in the registry of known map types and call the corresponding <metric_map_class>::MapDefinit...
void dumpToTextStream(mrpt::utils::CStream &out) const MRPT_OVERRIDE
This method should clearly display all the contents of the structure in textual form,...
const mrpt::utils::TRuntimeClassIdPtr & getMetricMapClassType() const
Query the map type (C++ class), as set by the factory method MapDefinition()
virtual void loadFromConfigFile_map_specific(const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix)=0
Load all map-specific params.
virtual void dumpToTextStream_map_specific(mrpt::utils::CStream &out) const =0
const mrpt::utils::TRuntimeClassIdPtr metricMapClassType
Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class.
void loadFromConfigFile(const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix) MRPT_OVERRIDE
Load all params from a config file/source.
TMetricMapInitializer(const mrpt::utils::TRuntimeClassId *classID)
mrpt::maps::TMapGenericParams genericMapParams
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectF...
A structure that holds runtime class type information.
A wrapper class for pointers that can be safely copied with "=" operator without problems.