Mini application server API for C++.
base
Class CzzAllocMap
in zz_allocmap.h
- class CzzAllocMap
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
|
Method Summary |
void |
Add( int addr, void* p, size_t n )
Adds a block to the list |
int |
CheckMemory( void )
Checks if there are any objects on the heap that not have been released |
void |
Delete( int addr )
Frees a memoryblock |
CzzAllocMap
public CzzAllocMap();
-
Construction. Do not use. A list is automatically created
if your program uses CzzBase based classes and is DEBUG
compiled
~CzzAllocMap
public ~CzzAllocMap();
Add
public void 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
CheckMemory
public int CheckMemory( void );
- Checks if there are any objects on the heap that not have been released
Delete
public void Delete( int addr );
- Frees a memoryblock
- Parameters:
addr - Memory address