Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Classes | Public Types | Public Member Functions | Public Attributes
mrpt::aligned_allocator_cpp11< T, AligmentBytes > Class Template Reference

Detailed Description

template<class T, size_t AligmentBytes = 16>
class mrpt::aligned_allocator_cpp11< T, AligmentBytes >

Aligned allocator that is compatible with C++11 See: https://bitbucket.org/eigen/eigen/commits/f5b7700.

Definition at line 22 of file aligned_allocator.h.

#include <mrpt/utils/aligned_allocator.h>

Inheritance diagram for mrpt::aligned_allocator_cpp11< T, AligmentBytes >:
Inheritance graph

Classes

struct  rebind
 

Public Types

typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef T value_type
 

Public Member Functions

 aligned_allocator_cpp11 ()
 
 aligned_allocator_cpp11 (const aligned_allocator_cpp11 &other)
 
template<class U >
 aligned_allocator_cpp11 (const aligned_allocator_cpp11< U > &other)
 
 ~aligned_allocator_cpp11 ()
 
pointer allocate (size_type num, const void *=nullptr)
 
void deallocate (pointer p, size_type)
 

Public Attributes

elements
 STL member. More...
 

Member Typedef Documentation

◆ const_pointer

template<class T, size_t AligmentBytes = 16>
typedef const T* mrpt::aligned_allocator_cpp11< T, AligmentBytes >::const_pointer

Definition at line 28 of file aligned_allocator.h.

◆ const_reference

template<class T, size_t AligmentBytes = 16>
typedef const T& mrpt::aligned_allocator_cpp11< T, AligmentBytes >::const_reference

Definition at line 30 of file aligned_allocator.h.

◆ difference_type

template<class T, size_t AligmentBytes = 16>
typedef std::ptrdiff_t mrpt::aligned_allocator_cpp11< T, AligmentBytes >::difference_type

Definition at line 26 of file aligned_allocator.h.

◆ pointer

template<class T, size_t AligmentBytes = 16>
typedef T* mrpt::aligned_allocator_cpp11< T, AligmentBytes >::pointer

Definition at line 27 of file aligned_allocator.h.

◆ reference

template<class T, size_t AligmentBytes = 16>
typedef T& mrpt::aligned_allocator_cpp11< T, AligmentBytes >::reference

Definition at line 29 of file aligned_allocator.h.

◆ size_type

template<class T, size_t AligmentBytes = 16>
typedef std::size_t mrpt::aligned_allocator_cpp11< T, AligmentBytes >::size_type

Definition at line 25 of file aligned_allocator.h.

◆ value_type

template<class T, size_t AligmentBytes = 16>
typedef T mrpt::aligned_allocator_cpp11< T, AligmentBytes >::value_type

Definition at line 31 of file aligned_allocator.h.

Constructor & Destructor Documentation

◆ aligned_allocator_cpp11() [1/3]

template<class T, size_t AligmentBytes = 16>
mrpt::aligned_allocator_cpp11< T, AligmentBytes >::aligned_allocator_cpp11 ( )
inline

Definition at line 39 of file aligned_allocator.h.

◆ aligned_allocator_cpp11() [2/3]

template<class T, size_t AligmentBytes = 16>
mrpt::aligned_allocator_cpp11< T, AligmentBytes >::aligned_allocator_cpp11 ( const aligned_allocator_cpp11< T, AligmentBytes > &  other)
inline

Definition at line 40 of file aligned_allocator.h.

◆ aligned_allocator_cpp11() [3/3]

template<class T, size_t AligmentBytes = 16>
template<class U >
mrpt::aligned_allocator_cpp11< T, AligmentBytes >::aligned_allocator_cpp11 ( const aligned_allocator_cpp11< U > &  other)
inline

Definition at line 46 of file aligned_allocator.h.

◆ ~aligned_allocator_cpp11()

template<class T, size_t AligmentBytes = 16>
mrpt::aligned_allocator_cpp11< T, AligmentBytes >::~aligned_allocator_cpp11 ( )
inline

Definition at line 51 of file aligned_allocator.h.

Member Function Documentation

◆ allocate()

template<class T, size_t AligmentBytes = 16>
pointer mrpt::aligned_allocator_cpp11< T, AligmentBytes >::allocate ( size_type  num,
const void = nullptr 
)
inline

Definition at line 52 of file aligned_allocator.h.

References mrpt::system::os::aligned_malloc().

Here is the call graph for this function:

◆ deallocate()

template<class T, size_t AligmentBytes = 16>
void mrpt::aligned_allocator_cpp11< T, AligmentBytes >::deallocate ( pointer  p,
size_type   
)
inline

Definition at line 58 of file aligned_allocator.h.

References mrpt::system::os::aligned_free().

Here is the call graph for this function:

Member Data Documentation

◆ elements

T std::allocator< T >::elements
inherited

STL member.




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