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

this maps support erasing elements, Alert inefficient!! More...

#include <bimap.hpp>

Inheritance diagram for paal::data_structures::eraseable_bimap< T, Idx >:
paal::data_structures::bimap< T, Idx >

Public Member Functions

void erase (const T &t)
 erases element (takes linear time) More...
 
- Public Member Functions inherited from paal::data_structures::bimap< T, Idx >
template<typename Range >
 bimap (Range &&range)
 constructor More...
 
Idx get_idx (const T &t) const
 gets index of element t More...
 
const T & get_val (Idx i) const
 get value for index i More...
 
std::size_t size () const
 number of elements More...
 
Idx add (const T &t)
 adds element to collection More...
 
std::pair< Iterator, Iterator > get_range () const
 get range of all element, index pairs More...
 

Additional Inherited Members

- Public Types inherited from paal::data_structures::bimap< T, Idx >
typedef TToID::const_iterator Iterator
 
- Protected Attributes inherited from paal::data_structures::bimap< T, Idx >
std::vector< T > m_id_to_t
 mapping from id to element
 
TToID m_t_to_id
 mapping from elements to ids
 

Detailed Description

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

this maps support erasing elements, Alert inefficient!!

Template Parameters
T
Idx

Definition at line 219 of file bimap.hpp.

Member Function Documentation

template<typename T, typename Idx = int>
void paal::data_structures::eraseable_bimap< T, Idx >::erase ( const T &  t)
inline

erases element (takes linear time)

Parameters
t

Definition at line 230 of file bimap.hpp.


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