|
Open CASCADE Technology
6.5.4
|
#include <OSD_MAllocHook.hxx>

Public Member Functions | |
| virtual void | AllocEvent (size_t theSize, long theRequestNum)=0 |
| Allocation event handler. | |
| virtual void | FreeEvent (void *theData, size_t theSize, long theRequestNum)=0 |
| Freeing event handler. | |
Interface of a class that should handle allocation/deallocation events
| virtual void OSD_MAllocHook::Callback::AllocEvent | ( | size_t | theSize, |
| long | theRequestNum | ||
| ) | [pure virtual] |
It is called when allocation is done
| theSize | the size of the memory block in bytes |
| theRequestNum | the allocation order number of the memory block |
Implemented in OSD_MAllocHook::CollectBySize, and OSD_MAllocHook::LogFileHandler.
| virtual void OSD_MAllocHook::Callback::FreeEvent | ( | void * | theData, |
| size_t | theSize, | ||
| long | theRequestNum | ||
| ) | [pure virtual] |
It is called when the block is freed
| theData | the pointer to the user data section of the memory block |
| theSize | the size of the memory block in bytes |
| theRequestNum | the allocation order number of the memory block |
Implemented in OSD_MAllocHook::CollectBySize, and OSD_MAllocHook::LogFileHandler.
1.8.0