Keos::CMemoryManager Class Reference

Memory manager, detects the memory leaks. More...

#include <KeosMemoryManager.h>

List of all members.

Public Member Functions

void * Allocate (size_t nSize, const CFile &File, int nLine, bool bArray)
 Add an allocation memory.
void Free (void *pPtr, bool bArray)
 Remove an allocation memory.
void NextDelete (const CFile &File, int nLine)
 Back up the information about the current deallocation.
 ~CMemoryManager ()
 Destructor.

Static Public Member Functions

static CMemoryManagerInstance ()
 Return the class instance.

Classes

struct  TBlock


Detailed Description

Memory manager, detects the memory leaks.

Definition at line 63 of file KeosMemoryManager.h.


Constructor & Destructor Documentation

Keos::CMemoryManager::~CMemoryManager (  ) 

Destructor.

Definition at line 75 of file KeosMemoryManager.cpp.


Member Function Documentation

CMemoryManager & Keos::CMemoryManager::Instance (  )  [static]

Return the class instance.

Returns:
Reference on the unique instance of the class.

Definition at line 99 of file KeosMemoryManager.cpp.

void * Keos::CMemoryManager::Allocate ( size_t  nSize,
const CFile File,
int  nLine,
bool  bArray 
)

Add an allocation memory.

Parameters:
nSize Allocated size.
File File containing the allowance.
nLine Line of the allowance.
bArray True if it is an allowance of array.
Returns:
Pointer on the allocated memory.

Definition at line 133 of file KeosMemoryManager.cpp.

void Keos::CMemoryManager::Free ( void *  pPtr,
bool  bArray 
)

Remove an allocation memory.

Parameters:
pPtr Address of the memory deallocated.
bArray True if it is an deallocation of array.

Definition at line 155 of file KeosMemoryManager.cpp.

void Keos::CMemoryManager::NextDelete ( const CFile File,
int  nLine 
)

Back up the information about the current deallocation.

Parameters:
File File containing the deallocation.
nLine Line of the deallocation.

Definition at line 188 of file KeosMemoryManager.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:26 2007 for Keos by  doxygen 1.5.1-p1