class STMalloc

Provides a safe way to allocate and free memory. More...

Definition#include <STMalloc.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

Provides a safe way to allocate and free memory. This object prevents memory leeks by controlling the allocation and freeing of space. Controled memory will never be freed twice nore allocated twice. At destroy time any memory that was not freed will be automaticly freed.

unsigned int LastCellMalloced

LastCellMalloced

unsigned int LastCellFreed

LastCellFreed

 STMalloc ()

STMalloc

Constructor

 ~STMalloc ()

~STMalloc

Destructor

void * MemAlloc (int SizeOfMemToAlloc)

MemAlloc

Allcates a block of memory and returns a pointer to it.

bool  MemFree (void *AddressToFree)

MemFree

Frees a memory block that was previously allocated.

unsigned int  Count ()

Count

Tells the number of memory block that have been allocated. This is not bytes or size of memory, just a count of the number of time MemAlloc - MemFree where called.


Generated by: root on UtopiaPlanitia.Ept on Mon Dec 10 22:55:12 2001, using kdoc 2.0a53.