Main MRPT website > C++ reference for MRPT 1.9.9
traits_map.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef mrpt_traits_maps_H
10 #define mrpt_traits_maps_H
11 
13 
14 namespace mrpt
15 {
16 namespace utils
17 {
18 /** \addtogroup stlext_grp
19  * @{ */
20 
21 /** @name Trait helper classes for templatized selection of a std::map
22  implementation
23  @{ */
24 
25 /** Traits for using a std::map<> (sparse representation) \sa
26  * map_traits_map_as_vector */
28 {
29  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
30  class _Alloc =
31  Eigen::aligned_allocator<std::pair<const KEY, VALUE>>>
32  struct map : public std::map<KEY, VALUE, _LessPred, _Alloc>
33  {
34  };
35 };
36 
37 /** Traits for using a mrpt::utils::map_as_vector<> (dense, fastest
38  * representation) \sa map_traits_stdmap */
40 {
41  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
42  class _Alloc =
43  Eigen::aligned_allocator<std::pair<const KEY, VALUE>>>
44  struct map : public mrpt::utils::map_as_vector<KEY, VALUE>
45  {
46  };
47 };
48 
49 /** @} */
50 /** @} */ // end of grouping
51 
52 } // End of namespace
53 } // End of namespace
54 
55 #endif
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
Definition: map_as_vector.h:59
Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation)
Definition: traits_map.h:39
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Traits for using a std::map<> (sparse representation)
Definition: traits_map.h:27



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019