library of assembled shared sources

http://lass.cocamware.com

lass::util::AllocatorAligned< alignment, VariableAllocator > Class Template Reference
[Allocator]

#include <allocator.h>


Public Member Functions

void * allocate (size_t size)
void deallocate (void *mem, size_t size)

Private Member Functions

void * align (void *mem)
void * unalign (void *mem)


Detailed Description

template<unsigned char alignment, typename VariableAllocator = AllocatorMalloc>
class lass::util::AllocatorAligned< alignment, VariableAllocator >

AllocatorAligned adds alignment bytes to the requested block size to be able to shift the pointer to a alignment boundary.

Definition at line 1033 of file allocator.h.


Member Function Documentation

template<unsigned char alignment, typename VariableAllocator = AllocatorMalloc>
void* lass::util::AllocatorAligned< alignment, VariableAllocator >::allocate ( size_t  size  )  [inline]

Definition at line 1036 of file allocator.h.

template<unsigned char alignment, typename VariableAllocator = AllocatorMalloc>
void lass::util::AllocatorAligned< alignment, VariableAllocator >::deallocate ( void *  mem,
size_t  size 
) [inline]

Definition at line 1040 of file allocator.h.

template<unsigned char alignment, typename VariableAllocator = AllocatorMalloc>
void* lass::util::AllocatorAligned< alignment, VariableAllocator >::align ( void *  mem  )  [inline, private]

Definition at line 1045 of file allocator.h.

References LASS_ASSERT.

template<unsigned char alignment, typename VariableAllocator = AllocatorMalloc>
void* lass::util::AllocatorAligned< alignment, VariableAllocator >::unalign ( void *  mem  )  [inline, private]

Definition at line 1054 of file allocator.h.


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

Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo