|
AGX Dynamics 2.42.1.1
|
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 |
| 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 |
Byte allocator.
Definition at line 54 of file Allocator.h.
|
inline |
Definition at line 155 of file Allocator.h.
| agx::ByteAllocator::ByteAllocator | ( | const ByteAllocator & | other | ) |
| 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().
| void agx::ByteAllocator::deallocateBytes | ( | void * | buffer, |
| size_t | numBytes | ||
| ) |
Deallocate a section previously allocated using allocateBytes method.
Referenced by agx::CellTable< CellIdT, HashT >::~CellTable(), agx::Vector< T, Allocator >::~Vector(), agx::VectorPOD< T, Allocator >::~VectorPOD(), agx::Vector< T, Allocator >::clear(), agx::VectorPOD< T, Allocator >::clear(), agx::Allocator< T >::deallocate(), agx::AlignedAllocator< T >::deallocate(), and deallocateBytes().
| const char * agx::ByteAllocator::getName | ( | ) | const |
Definition at line 164 of file Allocator.h.
|
static |
| ByteAllocator & agx::ByteAllocator::operator= | ( | const ByteAllocator & | other | ) |
|
inline |
Definition at line 71 of file Allocator.h.
Referenced by agx::Vector< T, Allocator >::Vector(), agx::Vector< T, Allocator >::operator=(), and agx::VectorPOD< T, Allocator >::operator=().
|
static |
|
static |
|
static |
Definition at line 79 of file Allocator.h.
|
static |
Definition at line 80 of file Allocator.h.
|
static |
Definition at line 78 of file Allocator.h.