|
AGXDynamics
2.31.1.0
|
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. More... | |
| 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 |
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().
|
inherited |
Allocate a memory section of specified alignment.
Referenced by agx::Allocator< T >::allocate(), and agx::AlignedAllocator< T >::allocate().
| void agx::Allocator< T >::deallocate | ( | T * | buffer | ) |
Definition at line 191 of file Allocator.h.
References agx::ByteAllocator::deallocateBytes().
Deallocate a section previously allocated using allocateBytes method.
Referenced by agx::Vector< T, Allocator >::clear(), agx::VectorPOD< T, Allocator >::clear(), agx::Allocator< T >::deallocate(), agx::AlignedAllocator< T >::deallocate(), agx::ByteAllocator::deallocateBytes(), agx::CellTable< CellIdT, HashT >::~CellTable(), agx::Vector< T, Allocator >::~Vector(), and agx::VectorPOD< T, Allocator >::~VectorPOD().
Definition at line 173 of file Allocator.h.
References agx::ByteAllocator::deallocateBytes().
|
inherited |
Definition at line 164 of file Allocator.h.
|
staticinherited |
Definition at line 71 of file Allocator.h.
Referenced by agx::Vector< T, Allocator >::operator=(), agx::VectorPOD< T, Allocator >::operator=(), agx::Vector< T, Allocator >::Vector(), and agx::VectorPOD< T, Allocator >::VectorPOD().
|
staticinherited |
|
staticinherited |
Definition at line 79 of file Allocator.h.
|
staticinherited |
Definition at line 80 of file Allocator.h.
|
staticinherited |
Definition at line 78 of file Allocator.h.