Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
OSD_MAllocHook::Callback Class Reference

#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.
virtual void FreeEvent (void *theData, size_t theSize, long theRequestNum)=0
 Freeing event handler.

Detailed Description

Interface of a class that should handle allocation/deallocation events


Member Function Documentation

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

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.

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

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: