Open CASCADE Technology
7.6.0
|
#include <OSD_MAllocHook.hxx>
Public Member Functions | |
virtual void | AllocEvent (size_t theSize, long theRequestNum)=0 |
Allocation event handler. More... | |
virtual void | FreeEvent (void *theData, size_t theSize, long theRequestNum)=0 |
Freeing event handler. More... | |
Interface of a class that should handle allocation/deallocation events
|
pure virtual |
Allocation event handler.
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.
|
pure virtual |
Freeing event handler.
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.