Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes
mrpt::typemeta::internal::bimap< KEY, VALUE > Struct Template Reference

Detailed Description

template<typename KEY, typename VALUE>
struct mrpt::typemeta::internal::bimap< KEY, VALUE >

Definition at line 21 of file TEnumType.h.

#include <mrpt/typemeta/TEnumType.h>

Public Member Functions

bool direct (const KEY &k, VALUE &out_v) const
 
bool inverse (const VALUE &v, KEY &out_k) const
 
void insert (const KEY &k, const VALUE &v)
 

Public Attributes

std::map< KEY, VALUE > m_k2v
 
std::map< VALUE, KEY > m_v2k
 

Member Function Documentation

◆ direct()

template<typename KEY, typename VALUE>
bool mrpt::typemeta::internal::bimap< KEY, VALUE >::direct ( const KEY &  k,
VALUE &  out_v 
) const
inline

Definition at line 26 of file TEnumType.h.

References mrpt::typemeta::internal::bimap< KEY, VALUE >::m_k2v.

◆ insert()

template<typename KEY, typename VALUE>
void mrpt::typemeta::internal::bimap< KEY, VALUE >::insert ( const KEY &  k,
const VALUE &  v 
)
inline

◆ inverse()

template<typename KEY, typename VALUE>
bool mrpt::typemeta::internal::bimap< KEY, VALUE >::inverse ( const VALUE &  v,
KEY &  out_k 
) const
inline

Definition at line 33 of file TEnumType.h.

References mrpt::typemeta::internal::bimap< KEY, VALUE >::m_v2k.

Member Data Documentation

◆ m_k2v

template<typename KEY, typename VALUE>
std::map<KEY, VALUE> mrpt::typemeta::internal::bimap< KEY, VALUE >::m_k2v

◆ m_v2k

template<typename KEY, typename VALUE>
std::map<VALUE, KEY> mrpt::typemeta::internal::bimap< KEY, VALUE >::m_v2k



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019