9 #ifndef mrpt_map_as_vector_H 10 #define mrpt_map_as_vector_H 103 return m_vec[i].second;
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
vec_t::const_iterator const_iterator
map_as_vector(const map_as_vector< KEY, VALUE > &o)
Copy constructor.
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) ...
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...
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...
map_as_vector()
< Default constructor - does nothing */
const_reverse_iterator rbegin() const
const Scalar * const_iterator
void clear()
Clear the contents of this container.
Helper types for STL containers with Eigen memory allocators.
const vec_t & getVector() const
Return a read-only reference to the internal vector.
const_reverse_iterator rend() const
const_iterator end() const
std::pair< KEY, VALUE > value_type
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 ...
std::reverse_iterator< iterator > reverse_iterator
vec_t::size_type size_type
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...
reverse_iterator rbegin()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void insert(const value_type &keyvalpair)
Insert pair<key,val>, as in std::map.
vec_t m_vec
The actual container.
size_type max_size() const
Maximum size due to system limits.
const_iterator begin() const
std::reverse_iterator< const_iterator > const_reverse_iterator
void swap(map_as_vector< KEY, VALUE > &o)
Efficient swap with another object.