PxBroadcastingAllocator.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_FOUNDATION_PX_BROADCASTING_ALLOCATOR_H
15 #define PX_FOUNDATION_PX_BROADCASTING_ALLOCATOR_H
16 
18 
22 #ifndef PX_DOXYGEN
23 namespace physx
24 {
25 #endif
26 
35  {
36  protected:
38 
39  public:
48  virtual void onAllocation( size_t size, const char* typeName, const char* filename, int line, void* allocatedMemory ) = 0;
49 
54  virtual void onDeallocation( void* allocatedMemory ) = 0;
55  };
56 
66  {
67  protected:
69 
70  public:
78  virtual void registerAllocationListener( PxAllocationListener& inListener ) = 0;
86  virtual void deregisterAllocationListener( PxAllocationListener& inListener ) = 0;
87  };
88 
89 #ifndef PX_DOXYGEN
90 } // namespace physx
91 #endif
92 
94 #endif // PX_FOUNDATION_PX_BROADCASTING_ALLOCATOR_H


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