PhysX SDK 3.2 API Reference: PxAllocationListener Class Reference

PhysX SDK 3.2 API

PxAllocationListener Class Reference
[Foundation]

Abstract listener class that listens to allocation and deallocation events from the foundation memory system. More...

#include <PxBroadcastingAllocator.h>

List of all members.


Public Member Functions

virtual void onAllocation (size_t size, const char *typeName, const char *filename, int line, void *allocatedMemory)=0
 callback when memory is allocated.
virtual void onDeallocation (void *allocatedMemory)=0

Protected Member Functions

virtual ~PxAllocationListener ()

Detailed Description

Abstract listener class that listens to allocation and deallocation events from the foundation memory system.

Threading: All methods of this class should be thread safe as it can be called from the user thread or the physics processing thread(s).


Constructor & Destructor Documentation

virtual PxAllocationListener::~PxAllocationListener (  )  [inline, protected, virtual]


Member Function Documentation

virtual void PxAllocationListener::onAllocation ( size_t  size,
const char *  typeName,
const char *  filename,
int  line,
void *  allocatedMemory 
) [pure virtual]

callback when memory is allocated.

Parameters:
size Size of the allocation in bytes.
typeName Type this data is being allocated for.
filename File the allocation came from.
line the allocation came from.
allocatedMemory memory that will be returned from the allocation.

virtual void PxAllocationListener::onDeallocation ( void *  allocatedMemory  )  [pure virtual]

/brief callback when memory is deallocated. /param allocatedMemory memory just before allocation.


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



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