Go to the documentation of this file.
9 #ifndef mrpt_TEnumType_H
10 #define mrpt_TEnumType_H
22 template <
typename ENUMTYPE>
31 template <
typename ENUMTYPE>
A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
static bimap< ENUMTYPE, std::string > & getBimap()
Singleton access.
static ENUMTYPE name2value(const std::string &name)
Gives the numerical name for a given enum text name.
static std::string value2name(const ENUMTYPE val)
Gives the textual name for a given enum value.
static void fill(mrpt::utils::bimap< enum_t, std::string > &m_map)
EIGEN_STRONG_INLINE bool empty() const
A helper class that can convert an enum value into its textual representation, and viceversa.
Only specializations of this class are defined for each enum type of interest.
| Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Tue Mar 3 09:15:16 UTC 2020 | | |