Main MRPT website > C++ reference for MRPT 1.5.7
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 implementation
22  @{ */
23 
24  /** Traits for using a std::map<> (sparse representation) \sa map_traits_map_as_vector */
26  template <class KEY,class VALUE,class _LessPred = std::less<KEY>, class _Alloc = Eigen::aligned_allocator<std::pair<const KEY, VALUE> > >
27  struct map : public std::map<KEY,VALUE,_LessPred,_Alloc> {
28  };
29  };
30 
31  /** Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation) \sa map_traits_stdmap */
33  template <class KEY,class VALUE,class _LessPred = std::less<KEY>, class _Alloc = Eigen::aligned_allocator<std::pair<const KEY, VALUE> > >
34  struct map : public mrpt::utils::map_as_vector<KEY,VALUE> { };
35  };
36 
37  /** @} */
38  /** @} */ // end of grouping
39 
40  } // End of namespace
41 } // End of namespace
42 
43 #endif
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
Definition: map_as_vector.h:47
Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation)
Definition: traits_map.h:32
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:25



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019