Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

IMemory Class Reference

The IMemory class is a purely virtual class that provides a standard interface for memory allocation and deallocation. More...

#include <CentumSharedCode.h>

Inheritance diagram for IMemory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void * Request (unsigned long size)=0
 The Request function returns a usable block of memory.
virtual void Free (void *ptr)=0
 The Free function releases a memory block from use.

Detailed Description

The IMemory class is a purely virtual class that provides a standard interface for memory allocation and deallocation.


Member Function Documentation

virtual void IMemory::Free void *  ptr  )  [pure virtual]
 

The Free function releases a memory block from use.

Use of a pointer after a Free operation on it is an error.

Parameters:
ptr a pointer to the memory block to be released.

Implemented in CMemoryTracker, and CDefaultMemoryManager.

virtual void* IMemory::Request unsigned long  size  )  [pure virtual]
 

The Request function returns a usable block of memory.

Parameters:
size the size of the memory block in bytes
Returns:
a pointer to the memory block.

Implemented in CMemoryTracker, and CDefaultMemoryManager.


The documentation for this class was generated from the following file:
Generated on Sat Apr 16 16:31:09 2005 for Centum API by  doxygen 1.4.2