|
AGX Dynamics 2.42.1.1
|
Templated allocator. More...
#include <Allocator.h>
Inheritance diagram for agx::Allocator< T >:Public Member Functions | |
| Allocator (const char *name="Allocator") | |
| T * | allocate (size_t numElements) |
| Allocate/deallocate raw memory. | |
| void | deallocate (T *buffer) |
Public Member Functions inherited from agx::ByteAllocator | |
| 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 *) |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::ByteAllocator | |
| 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 inherited from agx::ByteAllocator | |
| static agx::UInt32 | allocatedMemoryPattern |
| static agx::UInt32 | deallocatedMemoryPattern |
| static bool | initMemoryFlag |
Templated allocator.
Definition at line 106 of file Allocator.h.
|
inline |
Definition at line 179 of file Allocator.h.
| T * agx::Allocator< T >::allocate | ( | size_t | numElements | ) |
Allocate/deallocate raw memory.
Definition at line 185 of file Allocator.h.
References agx::ByteAllocator::allocateBytes().
| void agx::Allocator< T >::deallocate | ( | T * | buffer | ) |
Definition at line 191 of file Allocator.h.
References agx::ByteAllocator::deallocateBytes().