AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::ByteAllocator Class Reference

Byte allocator. More...

#include <Allocator.h>

+ Inheritance diagram for agx::ByteAllocator:

Public Member Functions

 ByteAllocator (const char *name="ByteAllocator")
 
 ByteAllocator (const ByteAllocator &other)
 
void * allocateBytes (size_t numBytes, size_t alignment=16)
 Allocate a memory section of specified alignment. More...
 
void deallocateBytes (void *buffer, size_t numBytes)
 Deallocate a section previously allocated using allocateBytes method. More...
 
void deallocateBytes (void *buffer)
 
const char * getName () const
 
ByteAllocator & operator= (const ByteAllocator &other)
 
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

Byte allocator.

Definition at line 54 of file Allocator.h.

Constructor & Destructor Documentation

agx::ByteAllocator::ByteAllocator ( const char *  name = "ByteAllocator")
inline

Definition at line 155 of file Allocator.h.

agx::ByteAllocator::ByteAllocator ( const ByteAllocator &  other)

Member Function Documentation

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

Allocate a memory section of specified alignment.

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

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

Definition at line 173 of file Allocator.h.

References deallocateBytes().

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

Definition at line 164 of file Allocator.h.

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

Member Data Documentation

agx::UInt32 agx::ByteAllocator::allocatedMemoryPattern
static

Definition at line 79 of file Allocator.h.

agx::UInt32 agx::ByteAllocator::deallocatedMemoryPattern
static

Definition at line 80 of file Allocator.h.

bool agx::ByteAllocator::initMemoryFlag
static

Definition at line 78 of file Allocator.h.


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