#include <mrpt/utils/traits_map.h>

Public Member Functions | |
Constructors, read/write access and other operations | |
| size_t | size () const |
| bool | empty () const |
| size_type | count (const key_type i) const |
| Count how many entries have a given key value - unlike std::map<K,V>, recall that this class will say an element i<N-1 exists just due to an insertion of element at N. | |
| size_type | max_size () const |
| Maximum size due to system limits. | |
| const vec_t & | getVector () const |
| Return a read-only reference to the internal vector. | |
| void | clear () |
| Clear the contents of this container. | |
| void | swap (map_as_vector< KEY, VALUE > &o) |
| Efficient swap with another object. | |
| VALUE & | operator[] (const size_t i) |
| Write/read via [i] operator, that creates all elements up to (and including) the i'th if they didn't exist already. | |
| void | insert (const iterator &guess_point, const value_type &keyvalpair) |
| Insert pair<key,val>, as in std::map (guess_point is actually ignored in this class) | |
| void | insert (const value_type &keyvalpair) |
| Insert pair<key,val>, as in std::map. | |
| iterator | find (const size_t i) |
| Constant-time find, returning an iterator to the <key,val> pair or to end() if not found (that is, if it's above the maximum index in the vector) | |
| const_iterator | find (const size_t i) const |
| Constant-time find, returning an iterator to the <key,val> pair or to end() if not found (that is, if it's above the maximum index in the vector) | |
Iterators stuff and other types | |
| typedef KEY | key_type |
| typedef std::pair< KEY, VALUE > | value_type |
| typedef mrpt::aligned_containers < value_type >::vector_t | vec_t |
| typedef vec_t::size_type | size_type |
| typedef vec_t::iterator | iterator |
| typedef vec_t::const_iterator | const_iterator |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
typedef vec_t::const_iterator mrpt::utils::map_as_vector::const_iterator [inherited] |
Definition at line 69 of file map_as_vector.h.
typedef std::reverse_iterator<const_iterator> mrpt::utils::map_as_vector::const_reverse_iterator [inherited] |
Definition at line 71 of file map_as_vector.h.
typedef vec_t::iterator mrpt::utils::map_as_vector::iterator [inherited] |
Definition at line 68 of file map_as_vector.h.
typedef KEY mrpt::utils::map_as_vector::key_type [inherited] |
Definition at line 64 of file map_as_vector.h.
typedef std::reverse_iterator<iterator> mrpt::utils::map_as_vector::reverse_iterator [inherited] |
Definition at line 70 of file map_as_vector.h.
typedef vec_t::size_type mrpt::utils::map_as_vector::size_type [inherited] |
Definition at line 67 of file map_as_vector.h.
typedef std::pair<KEY,VALUE> mrpt::utils::map_as_vector::value_type [inherited] |
Definition at line 65 of file map_as_vector.h.
typedef mrpt::aligned_containers<value_type>::vector_t mrpt::utils::map_as_vector::vec_t [inherited] |
Definition at line 66 of file map_as_vector.h.
| iterator mrpt::utils::map_as_vector::begin | ( | ) | [inline, inherited] |
Definition at line 73 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| const_iterator mrpt::utils::map_as_vector::begin | ( | ) | const [inline, inherited] |
Definition at line 75 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| void mrpt::utils::map_as_vector::clear | ( | void | ) | [inline, inherited] |
Clear the contents of this container.
Definition at line 106 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
Count how many entries have a given key value - unlike std::map<K,V>, recall that this class will say an element i<N-1 exists just due to an insertion of element at N.
Definition at line 97 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| bool mrpt::utils::map_as_vector::empty | ( | ) | const [inline, inherited] |
Definition at line 94 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| iterator mrpt::utils::map_as_vector::end | ( | ) | [inline, inherited] |
Definition at line 74 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| const_iterator mrpt::utils::map_as_vector::end | ( | ) | const [inline, inherited] |
Definition at line 76 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| iterator mrpt::utils::map_as_vector::find | ( | const size_t | i | ) | [inline, inherited] |
Constant-time find, returning an iterator to the <key,val> pair or to end() if not found (that is, if it's above the maximum index in the vector)
Definition at line 124 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| const_iterator mrpt::utils::map_as_vector::find | ( | const size_t | i | ) | const [inline, inherited] |
Constant-time find, returning an iterator to the <key,val> pair or to end() if not found (that is, if it's above the maximum index in the vector)
Definition at line 126 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| const vec_t& mrpt::utils::map_as_vector::getVector | ( | ) | const [inline, inherited] |
Return a read-only reference to the internal vector.
Definition at line 103 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| void mrpt::utils::map_as_vector::insert | ( | const iterator & | guess_point, |
| const value_type & | keyvalpair | ||
| ) | [inline, inherited] |
Insert pair<key,val>, as in std::map (guess_point is actually ignored in this class)
Definition at line 119 of file map_as_vector.h.
References mrpt::utils::map_as_vector::operator[]().
| void mrpt::utils::map_as_vector::insert | ( | const value_type & | keyvalpair | ) | [inline, inherited] |
Insert pair<key,val>, as in std::map.
Definition at line 121 of file map_as_vector.h.
References mrpt::utils::map_as_vector::operator[]().
| size_type mrpt::utils::map_as_vector::max_size | ( | ) | const [inline, inherited] |
Maximum size due to system limits.
Definition at line 100 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| VALUE& mrpt::utils::map_as_vector::operator[] | ( | const size_t | i | ) | [inline, inherited] |
Write/read via [i] operator, that creates all elements up to (and including) the i'th if they didn't exist already.
Definition at line 112 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| reverse_iterator mrpt::utils::map_as_vector::rbegin | ( | ) | [inline, inherited] |
Definition at line 77 of file map_as_vector.h.
References mrpt::utils::map_as_vector::end().
| const_reverse_iterator mrpt::utils::map_as_vector::rbegin | ( | ) | const [inline, inherited] |
Definition at line 78 of file map_as_vector.h.
References mrpt::utils::map_as_vector::end().
| reverse_iterator mrpt::utils::map_as_vector::rend | ( | ) | [inline, inherited] |
Definition at line 79 of file map_as_vector.h.
References mrpt::utils::map_as_vector::begin().
| const_reverse_iterator mrpt::utils::map_as_vector::rend | ( | ) | const [inline, inherited] |
Definition at line 80 of file map_as_vector.h.
References mrpt::utils::map_as_vector::begin().
| size_t mrpt::utils::map_as_vector::size | ( | ) | const [inline, inherited] |
Definition at line 93 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| void mrpt::utils::map_as_vector::swap | ( | map_as_vector< KEY, VALUE > & | o | ) | [inline, inherited] |
Efficient swap with another object.
Definition at line 109 of file map_as_vector.h.
References mrpt::utils::map_as_vector::m_vec.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |