Main MRPT website > C++ reference
MRPT logo
Classes | Public Types | Public Member Functions
Eigen::aligned_allocator Class Reference

Detailed Description

STL compatible allocator to use with with 16 byte aligned types.

Example:

 // Matrix4f requires 16 bytes alignment:
 std::map< int, Matrix4f, std::less<int>, 
           aligned_allocator<std::pair<const int, Matrix4f> > > my_map_mat4;
 // Vector3f does not require 16 bytes alignment, no need to use Eigen's allocator:
 std::map< int, Vector3f > my_map_vec3;
See also:
TopicStlContainers.

List of all members.

Classes

struct  rebind

Public Types

typedef 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

pointer address (reference value) const
const_pointer address (const_reference value) const
 aligned_allocator () throw ()
 aligned_allocator (const aligned_allocator &) throw ()
template<class U >
 aligned_allocator (const aligned_allocator< U > &) throw ()
 ~aligned_allocator () throw ()
size_type max_size () const throw ()
pointer allocate (size_type num, const void *hint=0)
void construct (pointer p, const T &value)
void destroy (pointer p)
void deallocate (pointer p, size_type)
bool operator!= (const aligned_allocator< T > &) const
bool operator== (const aligned_allocator< T > &) const

Member Typedef Documentation

Definition at line 648 of file Core.

Definition at line 650 of file Core.

Definition at line 646 of file Core.

Definition at line 647 of file Core.

Definition at line 649 of file Core.

Definition at line 645 of file Core.

Definition at line 651 of file Core.


Constructor & Destructor Documentation

Eigen::aligned_allocator::aligned_allocator ( ) throw () [inline]

Definition at line 669 of file Core.

Eigen::aligned_allocator::aligned_allocator ( const aligned_allocator ) throw () [inline]

Definition at line 673 of file Core.

template<class U >
Eigen::aligned_allocator::aligned_allocator ( const aligned_allocator< U > &  ) throw () [inline]

Definition at line 678 of file Core.

Eigen::aligned_allocator::~aligned_allocator ( ) throw () [inline]

Definition at line 682 of file Core.


Member Function Documentation

pointer Eigen::aligned_allocator::address ( reference  value) const [inline]

Definition at line 659 of file Core.

const_pointer Eigen::aligned_allocator::address ( const_reference  value) const [inline]

Definition at line 664 of file Core.

pointer Eigen::aligned_allocator::allocate ( size_type  num,
const void *  hint = 0 
) [inline]

Definition at line 691 of file Core.

void Eigen::aligned_allocator::construct ( pointer  p,
const T &  value 
) [inline]

Definition at line 697 of file Core.

void Eigen::aligned_allocator::deallocate ( pointer  p,
size_type   
) [inline]

Definition at line 707 of file Core.

void Eigen::aligned_allocator::destroy ( pointer  p) [inline]

Definition at line 702 of file Core.

size_type Eigen::aligned_allocator::max_size ( ) const throw () [inline]

Definition at line 686 of file Core.

bool Eigen::aligned_allocator::operator!= ( const aligned_allocator< T > &  ) const [inline]

Definition at line 712 of file Core.

bool Eigen::aligned_allocator::operator== ( const aligned_allocator< T > &  ) const [inline]

Definition at line 715 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011