Jolt Physics
A multi core friendly Game Physics Engine
|
#include <TempAllocator.h>
Public Member Functions | |
virtual JPH_OVERRIDE_NEW_DELETE | ~TempAllocator ()=default |
Destructor. More... | |
virtual void * | Allocate (uint inSize)=0 |
Allocates inSize bytes of memory, returned memory address must be JPH_RVECTOR_ALIGNMENT byte aligned. More... | |
virtual void | Free (void *inAddress, uint inSize)=0 |
Frees inSize bytes of memory located at inAddress. More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Allocator for temporary allocations. This allocator works as a stack: The blocks must always be freed in the reverse order as they are allocated. Note that allocations and frees can take place from different threads, but the order is guaranteed though job dependencies, so it is not needed to use any form of locking.
|
virtualdefault |
Destructor.
|
pure virtual |
Allocates inSize bytes of memory, returned memory address must be JPH_RVECTOR_ALIGNMENT byte aligned.
Implemented in TempAllocatorImpl, and TempAllocatorMalloc.
|
pure virtual |
Frees inSize bytes of memory located at inAddress.
Implemented in TempAllocatorImpl, and TempAllocatorMalloc.