Abstract base class for an application defined memory allocator that allows an external listener to audit the memory allocations. More...
#include <PxBroadcastingAllocator.h>


Public Member Functions | |
| virtual void | registerAllocationListener (PxAllocationListener &inListener)=0 |
| Register an allocation listener. This object will be notified whenever an allocation happens. More... | |
| virtual void | deregisterAllocationListener (PxAllocationListener &inListener)=0 |
| Deregister an allocation listener. This object will no longer receive notifications upon allocation. More... | |
Public Member Functions inherited from PxAllocatorCallback | |
| virtual | ~PxAllocatorCallback () |
| destructor More... | |
| virtual void * | allocate (size_t size, const char *typeName, const char *filename, int line)=0 |
| Allocates size bytes of memory, which must be 16-byte aligned. More... | |
| virtual void | deallocate (void *ptr)=0 |
| Frees memory previously allocated by allocate(). More... | |
Protected Member Functions | |
| virtual | ~PxBroadcastingAllocator () |
Abstract base class for an application defined memory allocator that allows an external listener to audit the memory allocations.
Threading: Register/deregister are not threadsafe!!! You need to be sure multiple threads are using this allocator when you are adding new listeners.
|
inlineprotectedvirtual |
|
pure virtual |
Deregister an allocation listener. This object will no longer receive notifications upon allocation.
Threading:Not threadsafe if you are allocating and deallocating in another thread using this allocator.
|
pure virtual |
Register an allocation listener. This object will be notified whenever an allocation happens.
Threading:Not threadsafe if you are allocating and deallocating in another thread using this allocator.