|
AGXDynamics
2.31.1.0
|
Aligned allocator. More...
#include <Allocator.h>
Inheritance diagram for agx::AlignedAllocator< T >:Public Member Functions | |
| AlignedAllocator (const char *name="AlignedAllocator", agx::UInt32 aligment=128) | |
| T * | allocate (size_t numElements) |
| 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 |
Aligned allocator.
Definition at line 129 of file Allocator.h.
|
inline |
Definition at line 200 of file Allocator.h.
| T * agx::AlignedAllocator< T >::allocate | ( | size_t | numElements | ) |
Definition at line 206 of file Allocator.h.
References agx::ByteAllocator::allocateBytes().
|
inherited |
Allocate a memory section of specified alignment.
Referenced by agx::Allocator< T >::allocate(), agx::AlignedAllocator< T >::allocate(), agx::MemoryPoolOld< T >::clear(), agx::Vector< WireContactConstraintRef >::insert(), and agx::VectorPOD< agx::Vec6 >::insert().
| void agx::AlignedAllocator< T >::deallocate | ( | T * | buffer | ) |
Definition at line 212 of file Allocator.h.
References agx::ByteAllocator::deallocateBytes().
Deallocate a section previously allocated using allocateBytes method.
Referenced by agx::MemoryPoolOld< T >::clear(), agx::Vector< WireContactConstraintRef >::clear(), agx::VectorPOD< agx::Vec6 >::clear(), agx::Allocator< T >::deallocate(), agx::AlignedAllocator< T >::deallocate(), agx::Vector< WireContactConstraintRef >::insert(), agx::VectorPOD< agx::Vec6 >::insert(), agx::Vector< WireContactConstraintRef >::~Vector(), and agx::VectorPOD< agx::Vec6 >::~VectorPOD().
Definition at line 173 of file Allocator.h.
|
inherited |
Definition at line 164 of file Allocator.h.
|
staticinherited |
Definition at line 71 of file Allocator.h.
Referenced by agx::Vector< WireContactConstraintRef >::operator=(), agx::VectorPOD< agx::Vec6 >::operator=(), agx::Vector< WireContactConstraintRef >::Vector(), and agx::VectorPOD< agx::Vec6 >::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.