| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
#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
      
  | 
  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::LogFileHandler, and OSD_MAllocHook::CollectBySize.
      
  | 
  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::LogFileHandler, and OSD_MAllocHook::CollectBySize.