Main MRPT website > C++ reference for MRPT 1.5.7
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-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 
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:
19 namespace Eigen { template<class T> class aligned_allocator; }
20 
21 namespace 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 
std::map< TYPE1, TYPE2, std::less< TYPE1 >, Eigen::aligned_allocator< std::pair< const TYPE1, TYPE2 > > > map_t
std::deque< TYPE1, Eigen::aligned_allocator< TYPE1 > > deque_t
Helper types for STL containers with Eigen memory allocators.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::pair< TYPE1, TYPE2 > pair_t
std::multimap< TYPE1, TYPE2, std::less< TYPE1 >, Eigen::aligned_allocator< std::pair< const TYPE1, TYPE2 > > > multimap_t
std::vector< TYPE1, Eigen::aligned_allocator< TYPE1 > > vector_t
std::list< TYPE1, Eigen::aligned_allocator< TYPE1 > > list_t



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