MRPT  1.9.9
TEnumType.h File Reference
#include <map>
#include <stdexcept>
Include dependency graph for TEnumType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mrpt::typemeta::internal::bimap< KEY, VALUE >
 
struct  mrpt::typemeta::TEnumTypeFiller< ENUMTYPE >
 Only specializations of this class are defined for each enum type of interest. More...
 
struct  mrpt::typemeta::TEnumType< ENUMTYPE >
 A helper class that can convert an enum value into its textual representation, and viceversa. More...
 

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::typemeta
 
 mrpt::typemeta::internal
 

Macros

#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
 
#define MRPT_ENUM_TYPE_BEGIN_NAMESPACE(_NAMESPACE, _ENUM_TYPE_WITH_NS)
 
#define MRPT_ENUM_TYPE_END()
 
#define MRPT_FILL_ENUM(_X)   m_map.insert(_X, #_X)
 For use in specializations of TEnumTypeFiller. More...
 
#define MRPT_FILL_ENUM_CUSTOM_NAME(_X, _NAME)   m_map.insert(_X, _NAME)
 
#define MRPT_FILL_ENUM_MEMBER(_CLASS, _VALUE)   m_map.insert(_CLASS::_VALUE, #_VALUE)
 
#define _MRPT_AUXTOSTR(__AA)   #__AA
 

Macro Definition Documentation

◆ _MRPT_AUXTOSTR

#define _MRPT_AUXTOSTR (   __AA)    #__AA

◆ MRPT_ENUM_TYPE_BEGIN

#define MRPT_ENUM_TYPE_BEGIN (   _ENUM_TYPE_WITH_NS)
Value:
namespace mrpt \
{ \
namespace typemeta \
{ \
template <> \
struct TEnumTypeFiller<_ENUM_TYPE_WITH_NS> \
{ \
static void fill( \
m_map) \
{
EIGEN_STRONG_INLINE void fill(const Scalar v)
Definition: eigen_plugins.h:46
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Examples:
typemeta_TEnumType/test.cpp.

Definition at line 62 of file TEnumType.h.

◆ MRPT_ENUM_TYPE_BEGIN_NAMESPACE

#define MRPT_ENUM_TYPE_BEGIN_NAMESPACE (   _NAMESPACE,
  _ENUM_TYPE_WITH_NS 
)
Value:
MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS) \
using namespace _NAMESPACE;
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
Definition: TEnumType.h:62

Definition at line 74 of file TEnumType.h.

◆ MRPT_ENUM_TYPE_END

#define MRPT_ENUM_TYPE_END ( )
Value:
} \
} \
; \
} \
}
Examples:
typemeta_TEnumType/test.cpp.

Definition at line 78 of file TEnumType.h.

◆ MRPT_FILL_ENUM

#define MRPT_FILL_ENUM (   _X)    m_map.insert(_X, #_X)

For use in specializations of TEnumTypeFiller.

Examples:
typemeta_TEnumType/test.cpp.

Definition at line 86 of file TEnumType.h.

◆ MRPT_FILL_ENUM_CUSTOM_NAME

#define MRPT_FILL_ENUM_CUSTOM_NAME (   _X,
  _NAME 
)    m_map.insert(_X, _NAME)

Definition at line 87 of file TEnumType.h.

◆ MRPT_FILL_ENUM_MEMBER

#define MRPT_FILL_ENUM_MEMBER (   _CLASS,
  _VALUE 
)    m_map.insert(_CLASS::_VALUE, #_VALUE)
Examples:
typemeta_TEnumType/test.cpp.

Definition at line 88 of file TEnumType.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020