CzzAllocMap Class Reference

List with all CzzBase:s object allocated on the heap. More...

#include <base/zz_allocmap.h>

List of all members.

Public Member Functions

 CzzAllocMap ()
 Construction.
 ~CzzAllocMap ()
int CheckMemory (void)
 Checks if there are any objects on the heap that not have been released.
void Delete (int addr)
 Frees a memoryblock.
void Add (int addr, void *p, size_t n)
 Adds a block to the list.


Detailed Description

List with all CzzBase:s object allocated on the heap.

This class should not be used in any other way than indirectly via CzzBase.

Author:
Toni Thomsson, toni@tonjac.org


Constructor & Destructor Documentation

CzzAllocMap::CzzAllocMap  ) 
 

Construction.

Do not use. A list is automatically created if your program uses CzzBase based classes and is DEBUG compiled

CzzAllocMap::~CzzAllocMap  ) 
 


Member Function Documentation

void CzzAllocMap::Add int  addr,
void *  p,
size_t  n
 

Adds a block to the list.

Parameters:
addr Memory address
p Pointer to the object
n Size of the object

int CzzAllocMap::CheckMemory void   ) 
 

Checks if there are any objects on the heap that not have been released.

Returns:
Number of objects not released

void CzzAllocMap::Delete int  addr  ) 
 

Frees a memoryblock.

Parameters:
addr Memory address


The documentation for this class was generated from the following files:
Generated on Thu Sep 21 21:45:45 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO