Mini application server API for C++.

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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

Constructor Summary
CzzAllocMap()
          Construction.
~CzzAllocMap()
          
 
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
 

Constructor Detail

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();


Method Detail

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

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD