Inheritance diagram for CMemoryTracker:
Public Member Functions | |
CMemoryTracker () | |
The CMemoryTracker constructor sets the number of active pointers to zero. | |
~CMemoryTracker () | |
The CMemoryTracker destructor currently does nothing. | |
virtual void * | Request (unsigned long length) |
The Request function returns a pointer to new dynamically allocated memory. | |
virtual void | Free (void *ptr) |
The free function releases a dynamically allocated block of memory. | |
unsigned long | GetNumberOfPointers () const |
The GetNumberOfPointers function returns the number of active (unreleased) pointers. | |
void | FreeAll () |
The CMemoryTracker FreeAll function currently does nothing DEPRICIATED, DO NOT USE. | |
Protected Attributes | |
PointerArray | listofpointer |
A list of pointers that are currently in use, depreciated, DO NOT USE. | |
unsigned long | numpointers |
The current number of pointer that are in use. |
Currently this is the only memory manager class in use.
|
The free function releases a dynamically allocated block of memory. The count of active pointers is decreased by one upon a free operation. Using memory after a free operation is an error.
Implements IMemory. |
|
The GetNumberOfPointers function returns the number of active (unreleased) pointers.
|
|
The Request function returns a pointer to new dynamically allocated memory. The function also increases the count of active pointers by one.
Implements IMemory. |