#include <align_alloc.h>
Classes | |
struct | rebind |
Public Types | |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef ptrdiff_t | difference_type |
typedef T * | pointer |
typedef T & | reference |
typedef std::size_t | size_type |
typedef T | value_type |
Public Member Functions | |
T * | address (T &r) const |
const T * | address (const T &s) const |
aligned_allocator () | |
aligned_allocator (const aligned_allocator &) | |
template<typename U > | |
aligned_allocator (const aligned_allocator< U, Alignment > &) | |
T * | allocate (const std::size_t n) const |
template<typename U > | |
T * | allocate (const std::size_t n, const U *) const |
void | construct (T *const p, const T &t) const |
void | construct (T *const p) |
void | deallocate (T *const p, const std::size_t n) const |
void | destroy (T *const p) const |
std::size_t | max_size () const |
bool | operator!= (const aligned_allocator &other) const |
bool | operator== (const aligned_allocator &other) const |
~aligned_allocator () | |
Private Member Functions | |
aligned_allocator & | operator= (const aligned_allocator &) |
Allocator for aligned data.
Modified from the Mallocator from Stephan T. Lavavej. http://blogs.msdn.com/b/vcblog/archive/2008/08/28/the-mallocator.aspx
Definition at line 10 of file align_alloc.h.
typedef const T* aligned_allocator< T, Alignment >::const_pointer |
Definition at line 14 of file align_alloc.h.
typedef const T& aligned_allocator< T, Alignment >::const_reference |
Definition at line 16 of file align_alloc.h.
typedef ptrdiff_t aligned_allocator< T, Alignment >::difference_type |
Definition at line 19 of file align_alloc.h.
typedef T* aligned_allocator< T, Alignment >::pointer |
Definition at line 13 of file align_alloc.h.
typedef T& aligned_allocator< T, Alignment >::reference |
Definition at line 15 of file align_alloc.h.
typedef std::size_t aligned_allocator< T, Alignment >::size_type |
Definition at line 18 of file align_alloc.h.
typedef T aligned_allocator< T, Alignment >::value_type |
Definition at line 17 of file align_alloc.h.
|
inline |
Definition at line 56 of file align_alloc.h.
|
inline |
Definition at line 58 of file align_alloc.h.
|
inline |
Definition at line 61 of file align_alloc.h.
|
inline |
Definition at line 63 of file align_alloc.h.
|
inline |
|
inline |
|
inline |
Definition at line 66 of file align_alloc.h.
References aligned_alloc(), aligned_allocator< T, Alignment >::max_size(), dqmiodumpmetadata::n, NULL, and MetAnalyzer::pv().
Referenced by aligned_allocator< T, Alignment >::allocate().
|
inline |
Definition at line 99 of file align_alloc.h.
References aligned_allocator< T, Alignment >::allocate(), and dqmiodumpmetadata::n.
|
inline |
Definition at line 39 of file align_alloc.h.
References AlCaHLTBitMon_ParallelJobs::p, MetAnalyzer::pv(), and submitPVValidationJobs::t.
|
inline |
Definition at line 45 of file align_alloc.h.
References aligned_allocator< T, Alignment >::construct(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by aligned_allocator< T, Alignment >::construct().
|
inline |
|
inline |
|
inline |
Definition at line 25 of file align_alloc.h.
Referenced by aligned_allocator< T, Alignment >::allocate().
|
inline |
|
private |
|
inline |
Definition at line 52 of file align_alloc.h.