AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::AlignedAllocator< T > Class Template Reference

Aligned allocator. More...

#include <Allocator.h>

+ Inheritance diagram for agx::AlignedAllocator< T >:

Public Member Functions

 AlignedAllocator (const char *name="AlignedAllocator", agx::UInt32 aligment=128)
 
T * allocate (size_t numElements)
 
void * allocateBytes (size_t numBytes, size_t alignment=16)
 Allocate a memory section of specified alignment. More...
 
void deallocate (T *buffer)
 
void deallocateBytes (void *buffer, size_t numBytes)
 Deallocate a section previously allocated using allocateBytes method. More...
 
void deallocateBytes (void *buffer)
 
const char * getName () const
 
void setContainer (class Container *)
 

Static Public Member Functions

static void initMemory (void *data, size_t numBytes, agx::UInt32 pattern)
 
static void * standaloneAllocateBytes (size_t numBytes, size_t alignment=16)
 
static void standaloneDeallocateTypes (void *buffer)
 

Static Public Attributes

static agx::UInt32 allocatedMemoryPattern
 
static agx::UInt32 deallocatedMemoryPattern
 
static bool initMemoryFlag
 

Detailed Description

template<typename T>
class agx::AlignedAllocator< T >

Aligned allocator.

Definition at line 129 of file Allocator.h.

Constructor & Destructor Documentation

template<typename T >
agx::AlignedAllocator< T >::AlignedAllocator ( const char *  name = "AlignedAllocator< T >",
agx::UInt32  aligment = 128 
)
inline

Definition at line 200 of file Allocator.h.

Member Function Documentation

template<typename T >
T * agx::AlignedAllocator< T >::allocate ( size_t  numElements)

Definition at line 206 of file Allocator.h.

References agx::ByteAllocator::allocateBytes().

void* agx::ByteAllocator::allocateBytes ( size_t  numBytes,
size_t  alignment = 16 
)
inherited

Allocate a memory section of specified alignment.

Referenced by agx::Allocator< T >::allocate(), and agx::AlignedAllocator< T >::allocate().

template<typename T >
void agx::AlignedAllocator< T >::deallocate ( T *  buffer)

Definition at line 212 of file Allocator.h.

References agx::ByteAllocator::deallocateBytes().

void agx::ByteAllocator::deallocateBytes ( void *  buffer)
inherited

Definition at line 173 of file Allocator.h.

References agx::ByteAllocator::deallocateBytes().

const char * agx::ByteAllocator::getName ( ) const
inherited
Returns
The name

Definition at line 164 of file Allocator.h.

static void agx::ByteAllocator::initMemory ( void *  data,
size_t  numBytes,
agx::UInt32  pattern 
)
staticinherited
static void* agx::ByteAllocator::standaloneAllocateBytes ( size_t  numBytes,
size_t  alignment = 16 
)
staticinherited
static void agx::ByteAllocator::standaloneDeallocateTypes ( void *  buffer)
staticinherited

Member Data Documentation

agx::UInt32 agx::ByteAllocator::allocatedMemoryPattern
staticinherited

Definition at line 79 of file Allocator.h.

agx::UInt32 agx::ByteAllocator::deallocatedMemoryPattern
staticinherited

Definition at line 80 of file Allocator.h.

bool agx::ByteAllocator::initMemoryFlag
staticinherited

Definition at line 78 of file Allocator.h.


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