AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agx::ByteAllocator Class Reference

Byte allocator. More...

#include <Allocator.h>

+ Inheritance diagram for agx::ByteAllocator:

Public Member Functions

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

◆ ByteAllocator() [1/2]

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

Definition at line 155 of file Allocator.h.

◆ ByteAllocator() [2/2]

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

Member Function Documentation

◆ allocateBytes()

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().

◆ deallocateBytes() [1/2]

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

Definition at line 173 of file Allocator.h.

References deallocateBytes().

◆ deallocateBytes() [2/2]

◆ getName()

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

Definition at line 164 of file Allocator.h.

◆ initMemory()

static void agx::ByteAllocator::initMemory ( void *  data,
size_t  numBytes,
agx::UInt32  pattern 
)
static

◆ operator=()

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

◆ setContainer()

void agx::ByteAllocator::setContainer ( class Container )
inline

◆ standaloneAllocateBytes()

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

◆ standaloneDeallocateTypes()

static void agx::ByteAllocator::standaloneDeallocateTypes ( void *  buffer)
static

Member Data Documentation

◆ allocatedMemoryPattern

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

Definition at line 79 of file Allocator.h.

◆ deallocatedMemoryPattern

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

Definition at line 80 of file Allocator.h.

◆ initMemoryFlag

bool agx::ByteAllocator::initMemoryFlag
static

Definition at line 78 of file Allocator.h.


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