All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::data_structures::bimap_mic< T, Idx > Class Template Reference

the same as Bimap, but implemented using boost::multi_index_container. Unfortunately slower More...

#include <bimap.hpp>

Public Member Functions

template<typename Range >
 bimap_mic (Range &&range)
 constructor More...
 
Idx get_idx (const T &t) const
 get_idx on element t More...
 
const T & get_val (Idx i) const
 get element on index i More...
 
std::size_t size () const
 number of elements More...
 
Idx add (const T &t)
 adds alement to bimap More...
 

Detailed Description

template<typename T, typename Idx = int>
class paal::data_structures::bimap_mic< T, Idx >

the same as Bimap, but implemented using boost::multi_index_container. Unfortunately slower

Template Parameters
T
Idx

Definition at line 40 of file bimap.hpp.

Constructor & Destructor Documentation

template<typename T , typename Idx = int>
template<typename Range >
paal::data_structures::bimap_mic< T, Idx >::bimap_mic ( Range &&  range)
inline

constructor

Template Parameters
Range
Parameters
range

Definition at line 51 of file bimap.hpp.

Member Function Documentation

template<typename T , typename Idx = int>
Idx paal::data_structures::bimap_mic< T, Idx >::add ( const T &  t)
inline

adds alement to bimap

Parameters
t
Returns

Definition at line 100 of file bimap.hpp.

template<typename T , typename Idx = int>
Idx paal::data_structures::bimap_mic< T, Idx >::get_idx ( const T &  t) const
inline

get_idx on element t

Parameters
t
Returns

Definition at line 66 of file bimap.hpp.

template<typename T , typename Idx = int>
const T& paal::data_structures::bimap_mic< T, Idx >::get_val ( Idx  i) const
inline

get element on index i

Parameters
i
Returns

Definition at line 78 of file bimap.hpp.

template<typename T , typename Idx = int>
std::size_t paal::data_structures::bimap_mic< T, Idx >::size ( ) const
inline

number of elements

Returns

Definition at line 91 of file bimap.hpp.


The documentation for this class was generated from the following file: