MRPT  1.9.9
List of all members | Public Types | 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 22 of file TEnumType.h.

#include <mrpt/typemeta/TEnumType.h>

Public Types

using const_iterator = typename std::map< KEY, VALUE >::const_iterator
 

Public Member Functions

const_iterator begin () const
 
const_iterator end () const
 
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 Typedef Documentation

◆ const_iterator

template<typename KEY, typename VALUE>
using mrpt::typemeta::internal::bimap< KEY, VALUE >::const_iterator = typename std::map<KEY, VALUE>::const_iterator

Definition at line 27 of file TEnumType.h.

Member Function Documentation

◆ begin()

template<typename KEY, typename VALUE>
const_iterator mrpt::typemeta::internal::bimap< KEY, VALUE >::begin ( ) const
inline

Definition at line 28 of file TEnumType.h.

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

◆ 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 30 of file TEnumType.h.

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

◆ end()

template<typename KEY, typename VALUE>
const_iterator mrpt::typemeta::internal::bimap< KEY, VALUE >::end ( ) const
inline

Definition at line 29 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 37 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: 24b95e159 Thu Jan 23 01:15:46 2020 +0100 at jue ene 23 01:30:10 CET 2020