Go to the documentation of this file.
20 template <
typename KEY,
typename VALUE>
26 bool direct(
const KEY& k, VALUE& out_v)
const
28 auto i =
m_k2v.find(k);
29 if (i ==
m_k2v.end())
return false;
36 if (i ==
m_v2k.end())
return false;
52 template <
typename ENUMTYPE>
58 #define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS) \
64 struct TEnumTypeFiller<_ENUM_TYPE_WITH_NS> \
67 mrpt::typemeta::internal::bimap<_ENUM_TYPE_WITH_NS, std::string>& \
70 #define MRPT_ENUM_TYPE_BEGIN_NAMESPACE(_NAMESPACE, _ENUM_TYPE_WITH_NS) \
71 MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS) \
72 using namespace _NAMESPACE;
74 #define MRPT_ENUM_TYPE_END() \
82 #define MRPT_FILL_ENUM(_X) m_map.insert(_X, #_X)
83 #define MRPT_FILL_ENUM_CUSTOM_NAME(_X, _NAME) m_map.insert(_X, _NAME)
84 #define MRPT_FILL_ENUM_MEMBER(_CLASS, _VALUE) \
85 m_map.insert(_CLASS::_VALUE, #_VALUE)
89 template <
typename ENUMTYPE>
92 #define _MRPT_AUXTOSTR(__AA) #__AA
101 throw std::runtime_error(
104 TEnumType)
">::name2value(): Unknown name: ") +
117 throw std::runtime_error(
120 TEnumType)
">::value2name(): Unknown value: ") +
133 #undef _MRPT_AUXTOSTR
std::string std::string to_string(T v)
Just like std::to_string(), but with an overloaded version for std::string arguments.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLuint const GLchar * name
GLsizei GLsizei GLenum GLenum const GLvoid * data
Eigen::Matrix< dataType, 4, 4 > inverse(Eigen::Matrix< dataType, 4, 4 > &pose)
#define _MRPT_AUXTOSTR(__AA)
GLsizei const GLchar ** string
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |