Open CASCADE Technology  7.3.0
Public Member Functions

OSD_MAllocHook::Callback Class Referenceabstract

#include <OSD_MAllocHook.hxx>

Inheritance diagram for OSD_MAllocHook::Callback:
Inheritance graph
[legend]

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...
 

Detailed Description

Interface of a class that should handle allocation/deallocation events

Member Function Documentation

◆ AllocEvent()

virtual void OSD_MAllocHook::Callback::AllocEvent ( size_t  theSize,
long  theRequestNum 
)
pure virtual

Allocation event handler.

It is called when allocation is done

Parameters
theSizethe size of the memory block in bytes
theRequestNumthe allocation order number of the memory block

Implemented in OSD_MAllocHook::CollectBySize, and OSD_MAllocHook::LogFileHandler.

◆ FreeEvent()

virtual void OSD_MAllocHook::Callback::FreeEvent ( void *  theData,
size_t  theSize,
long  theRequestNum 
)
pure virtual

Freeing event handler.

It is called when the block is freed

Parameters
theDatathe pointer to the user data section of the memory block
theSizethe size of the memory block in bytes
theRequestNumthe allocation order number of the memory block

Implemented in OSD_MAllocHook::CollectBySize, and OSD_MAllocHook::LogFileHandler.


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