Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
utils
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-2016, 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
12
#include <
mrpt/utils/map_as_vector.h
>
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 */
25
struct
map_traits_stdmap
{
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 */
32
struct
map_traits_map_as_vector
{
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
mrpt::utils::map_as_vector
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
Definition
map_as_vector.h:48
map_as_vector.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition
CParticleFilter.h:17
mrpt::utils::map_traits_map_as_vector::map
Definition
traits_map.h:34
mrpt::utils::map_traits_map_as_vector
Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation)
Definition
traits_map.h:32
mrpt::utils::map_traits_stdmap::map
Definition
traits_map.h:27
mrpt::utils::map_traits_stdmap
Traits for using a std::map<> (sparse representation)
Definition
traits_map.h:25
Page generated by
Doxygen 1.9.8
for MRPT 1.4.0 SVN: at Fri Dec 15 05:36:48 UTC 2023