#include <mrpt/utils/core_defs.h>
#include <mrpt/obs/link_pragmas.h>
#include <mrpt/obs/obs_frwds.h>
#include <map>
#include <string>
Go to the source code of this file.
◆ MAP_DEFINITION_END
#define MAP_DEFINITION_END |
( |
|
_CLASS_NAME_, |
|
|
|
_LINKAGE_ |
|
) |
| |
Value: TMapDefinition();\
protected: \
}; \
\
\
\
static const size_t m_private_map_register_id; \
Declares a virtual base class for all metric maps storage classes.
This class allows loading and storing values and vectors of different types from a configuration text...
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:
Virtual base for specifying the kind and parameters of one map (normally, to be inserted into mrpt::m...
Definition at line 52 of file TMetricMapTypesRegistry.h.
◆ MAP_DEFINITION_REGISTER
#define MAP_DEFINITION_REGISTER |
( |
|
_CLASSNAME_STRINGS, |
|
|
|
_CLASSNAME_WITH_NS |
|
) |
| |
Value:
{ return dynamic_cast<_CLASSNAME_WITH_NS*>(_CLASSNAME_WITH_NS::internal_CreateFromMapDefinition(def)); }
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 m...
static TMetricMapTypesRegistry & Instance()
Registers one map class into TMetricMapInitializer factory.
One or several alternative class names can be provided, separated with whitespaces or commas
Definition at line 69 of file TMetricMapTypesRegistry.h.
◆ MAP_DEFINITION_START
#define MAP_DEFINITION_START |
( |
|
_CLASS_NAME_, |
|
|
|
_LINKAGE_ |
|
) |
| |
Value: public: \
\
TMapDefinitionBase() : TMetricMapInitializer(
CLASS_ID(_CLASS_NAME_)) { } \
};\
struct _LINKAGE_ TMapDefinition : public TMapDefinitionBase { \
#define CLASS_ID(class_name)
Access to runtime class ID for a defined class name.
Add a MAP_DEFINITION_START() ... MAP_DEFINITION_END() block inside the declaration of each metric map.
Definition at line 44 of file TMetricMapTypesRegistry.h.