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

in this bimap we know that elements forms permutation this allows optimization More...

#include <bimap.hpp>

Public Member Functions

template<typename Iter >
 bimap_of_consecutive (Iter b, Iter e)
 constructor More...
 
Idx get_idx (const T &t) const
 gets index of element t More...
 
const T & get_val (Idx i) const
 gets value for index i More...
 
std::size_t size () const
 number of elements More...
 

Detailed Description

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

in this bimap we know that elements forms permutation this allows optimization

Template Parameters
T
Idx

Definition at line 251 of file bimap.hpp.

Constructor & Destructor Documentation

template<typename T , typename Idx = int>
template<typename Iter >
paal::data_structures::bimap_of_consecutive< T, Idx >::bimap_of_consecutive ( Iter  b,
Iter  e 
)
inline

constructor

Template Parameters
Iter
Parameters
b
e

Definition at line 266 of file bimap.hpp.

Member Function Documentation

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

gets index of element t

Parameters
t
Returns

Definition at line 284 of file bimap.hpp.

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

gets value for index i

Parameters
i
Returns

Definition at line 293 of file bimap.hpp.

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

number of elements

Returns

Definition at line 300 of file bimap.hpp.


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