#include <btAlignedAllocator.h>
Classes | |
struct | rebind |
Public Types | |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef T * | pointer |
typedef T & | reference |
typedef T | value_type |
Public Member Functions | |
pointer | address (reference ref) const |
const_pointer | address (const_reference ref) const |
pointer | allocate (size_type n, const_pointer *hint=0) |
btAlignedAllocator () | |
template<typename Other > | |
btAlignedAllocator (const btAlignedAllocator< Other, Alignment > &) | |
void | construct (pointer ptr, const value_type &value) |
void | deallocate (pointer ptr) |
void | destroy (pointer ptr) |
template<typename O > | |
self_type & | operator= (const btAlignedAllocator< O, Alignment > &) |
Private Types | |
typedef btAlignedAllocator< T, Alignment > | self_type |
Friends | |
bool | operator== (const self_type &, const self_type &) |
The btAlignedAllocator is a portable class for aligned memory allocations. Default implementations for unaligned and aligned allocations can be overridden by a custom allocator using btAlignedAllocSetCustom and btAlignedAllocSetCustomAligned.
Definition at line 61 of file btAlignedAllocator.h.
typedef const T* btAlignedAllocator< T, Alignment >::const_pointer |
Definition at line 76 of file btAlignedAllocator.h.
typedef const T& btAlignedAllocator< T, Alignment >::const_reference |
Definition at line 77 of file btAlignedAllocator.h.
typedef T* btAlignedAllocator< T, Alignment >::pointer |
Definition at line 78 of file btAlignedAllocator.h.
typedef T& btAlignedAllocator< T, Alignment >::reference |
Definition at line 79 of file btAlignedAllocator.h.
typedef btAlignedAllocator< T , Alignment > btAlignedAllocator< T, Alignment >::self_type [private] |
Definition at line 63 of file btAlignedAllocator.h.
typedef T btAlignedAllocator< T, Alignment >::value_type |
Definition at line 80 of file btAlignedAllocator.h.
btAlignedAllocator< T, Alignment >::btAlignedAllocator | ( | ) | [inline] |
Definition at line 68 of file btAlignedAllocator.h.
btAlignedAllocator< T, Alignment >::btAlignedAllocator | ( | const btAlignedAllocator< Other, Alignment > & | ) | [inline] |
Definition at line 74 of file btAlignedAllocator.h.
pointer btAlignedAllocator< T, Alignment >::address | ( | reference | ref | ) | const [inline] |
Definition at line 82 of file btAlignedAllocator.h.
const_pointer btAlignedAllocator< T, Alignment >::address | ( | const_reference | ref | ) | const [inline] |
Definition at line 83 of file btAlignedAllocator.h.
pointer btAlignedAllocator< T, Alignment >::allocate | ( | size_type | n, |
const_pointer * | hint = 0 |
||
) | [inline] |
Definition at line 84 of file btAlignedAllocator.h.
void btAlignedAllocator< T, Alignment >::construct | ( | pointer | ptr, |
const value_type & | value | ||
) | [inline] |
Definition at line 88 of file btAlignedAllocator.h.
void btAlignedAllocator< T, Alignment >::deallocate | ( | pointer | ptr | ) | [inline] |
Definition at line 89 of file btAlignedAllocator.h.
void btAlignedAllocator< T, Alignment >::destroy | ( | pointer | ptr | ) | [inline] |
Definition at line 92 of file btAlignedAllocator.h.
self_type& btAlignedAllocator< T, Alignment >::operator= | ( | const btAlignedAllocator< O, Alignment > & | ) | [inline] |
Definition at line 99 of file btAlignedAllocator.h.
bool operator== | ( | const self_type & | , |
const self_type & | |||
) | [friend] |
Definition at line 101 of file btAlignedAllocator.h.