Main MRPT website > C++ reference for MRPT 1.4.0
aligned_containers.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
10#ifndef mrpt_aligned_containers_H
11#define mrpt_aligned_containers_H
12
13#include <vector>
14#include <map>
15#include <list>
16#include <deque>
17
18// Fwrd. decl:
19namespace Eigen { template<class T> class aligned_allocator; }
20
21namespace mrpt
22{
23 /** Helper types for STL containers with Eigen memory allocators. (in #include <mrpt/utils/aligned_containers.h>) */
24 template <class TYPE1,class TYPE2=TYPE1>
26 {
27 typedef std::pair<TYPE1,TYPE2> pair_t;
28 typedef std::vector<TYPE1, Eigen::aligned_allocator<TYPE1> > vector_t;
29 typedef std::deque<TYPE1, Eigen::aligned_allocator<TYPE1> > deque_t;
30 typedef std::list<TYPE1, Eigen::aligned_allocator<TYPE1> > list_t;
31 typedef std::map<TYPE1,TYPE2,std::less<TYPE1>,Eigen::aligned_allocator<std::pair<const TYPE1,TYPE2> > > map_t;
32 typedef std::multimap<TYPE1,TYPE2,std::less<TYPE1>,Eigen::aligned_allocator<std::pair<const TYPE1,TYPE2> > > multimap_t;
33 };
34}
35
36#endif
37
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Helper types for STL containers with Eigen memory allocators.
std::map< TYPE1, TYPE2, std::less< TYPE1 >, Eigen::aligned_allocator< std::pair< const TYPE1, TYPE2 > > > map_t
std::vector< TYPE1, Eigen::aligned_allocator< TYPE1 > > vector_t
std::list< TYPE1, Eigen::aligned_allocator< TYPE1 > > list_t
std::multimap< TYPE1, TYPE2, std::less< TYPE1 >, Eigen::aligned_allocator< std::pair< const TYPE1, TYPE2 > > > multimap_t
std::pair< TYPE1, TYPE2 > pair_t
std::deque< TYPE1, Eigen::aligned_allocator< TYPE1 > > deque_t



Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Sun Nov 27 02:47:40 UTC 2022