libmoost
moost::container::policies::vector_map< TVal > Class Template Reference

#include <vector_map.hpp>

Inheritance diagram for moost::container::policies::vector_map< TVal >:
Collaboration diagram for moost::container::policies::vector_map< TVal >:

List of all members.

Public Types

typedef std::vector< TVal > map_type

Public Member Functions

 vector_map (size_t vector_size=0)
virtual ~vector_map ()
virtual void init (map_type &map) const
 override
virtual void resize (map_type &map, size_t numKeys) const
 overrides
template<typename TKey >
TVal operator() (const std::vector< TVal > &vec, const TKey &key) const
template<typename TKey >
bool operator() (const std::vector< TVal > &vec, const TKey &key, TVal &val) const
template<typename TKey , typename TMapIterator >
TKey get_key (const std::vector< TVal > &vec, const TMapIterator &it) const
template<typename TIgnoreThis , typename TMapIterator >
TVal get_value (const std::vector< TVal > &, const TMapIterator &it) const

Private Attributes

const size_t m_initial_vector_size

Detailed Description

template<typename TVal>
class moost::container::policies::vector_map< TVal >

dense_hash_map: works with moost::container::dense_hash_map

Definition at line 40 of file vector_map.hpp.


Member Typedef Documentation

template<typename TVal >
typedef std::vector<TVal> moost::container::policies::vector_map< TVal >::map_type

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 44 of file vector_map.hpp.


Constructor & Destructor Documentation

template<typename TVal >
moost::container::policies::vector_map< TVal >::vector_map ( size_t  vector_size = 0) [inline]

Definition at line 48 of file vector_map.hpp.

template<typename TVal >
virtual moost::container::policies::vector_map< TVal >::~vector_map ( ) [inline, virtual]

Definition at line 52 of file vector_map.hpp.


Member Function Documentation

template<typename TVal >
template<typename TKey , typename TMapIterator >
TKey moost::container::policies::vector_map< TVal >::get_key ( const std::vector< TVal > &  vec,
const TMapIterator &  it 
) const [inline]

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 86 of file vector_map.hpp.

template<typename TVal >
template<typename TIgnoreThis , typename TMapIterator >
TVal moost::container::policies::vector_map< TVal >::get_value ( const std::vector< TVal > &  ,
const TMapIterator &  it 
) const [inline]

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 90 of file vector_map.hpp.

template<typename TVal >
virtual void moost::container::policies::vector_map< TVal >::init ( map_type map) const [inline, virtual]

override

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 55 of file vector_map.hpp.

template<typename TVal >
template<typename TKey >
TVal moost::container::policies::vector_map< TVal >::operator() ( const std::vector< TVal > &  vec,
const TKey &  key 
) const [inline]

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 66 of file vector_map.hpp.

template<typename TVal >
template<typename TKey >
bool moost::container::policies::vector_map< TVal >::operator() ( const std::vector< TVal > &  vec,
const TKey &  key,
TVal &  val 
) const [inline]

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 75 of file vector_map.hpp.

template<typename TVal >
virtual void moost::container::policies::vector_map< TVal >::resize ( map_type map,
size_t  numKeys 
) const [inline, virtual]

overrides

Reimplemented from moost::container::policies::generic_map< std::vector< TVal > >.

Definition at line 62 of file vector_map.hpp.


Member Data Documentation

template<typename TVal >
const size_t moost::container::policies::vector_map< TVal >::m_initial_vector_size [private]

Definition at line 103 of file vector_map.hpp.


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