Public Member Functions | Protected Member Functions | List of all members
PxBroadcastingAllocator Class Referenceabstract

Abstract base class for an application defined memory allocator that allows an external listener to audit the memory allocations. More...

#include <PxBroadcastingAllocator.h>

Inheritance diagram for PxBroadcastingAllocator:
Inheritance graph
[legend]
Collaboration diagram for PxBroadcastingAllocator:
Collaboration graph
[legend]

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual PxBroadcastingAllocator::~PxBroadcastingAllocator ( )
inlineprotectedvirtual

Member Function Documentation

virtual void PxBroadcastingAllocator::deregisterAllocationListener ( PxAllocationListener inListener)
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.

virtual void PxBroadcastingAllocator::registerAllocationListener ( PxAllocationListener inListener)
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.


The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com