Logo Search packages:      
Sourcecode: blender version File versions  Download package

btAlignedAllocator< T, Alignment > Class Template Reference

#include <btAlignedAllocator.h>

List of all members.


Detailed Description

template<typename T, unsigned Alignment>
class btAlignedAllocator< T, Alignment >

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.


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

const_pointer address (const_reference ref) const
pointer address (reference ref) const
pointer allocate (size_type n, const_pointer *hint=0)
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_typeoperator= (const btAlignedAllocator< O, Alignment > &)

Private Types

typedef btAlignedAllocator< T,
Alignment > 
self_type

Friends

bool operator== (const self_type &, const self_type &)

Classes

struct  rebind

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index