|
libmoost
|
#include <vector_map.hpp>


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 |
dense_hash_map: works with moost::container::dense_hash_map
Definition at line 40 of file vector_map.hpp.
| 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.
| moost::container::policies::vector_map< TVal >::vector_map | ( | size_t | vector_size = 0 | ) | [inline] |
Definition at line 48 of file vector_map.hpp.
| virtual moost::container::policies::vector_map< TVal >::~vector_map | ( | ) | [inline, virtual] |
Definition at line 52 of file vector_map.hpp.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
const size_t moost::container::policies::vector_map< TVal >::m_initial_vector_size [private] |
Definition at line 103 of file vector_map.hpp.