Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
BlockAllocator Class Template ReferenceBlockAllocator provides a basic mechanism for the heap friendly dynamic allocation and de-allocation of many instances of I. Requirements on I:
* must have a member function void Init () which mimics a default constructor
* must have a member function void Clear() which clears proprietary members of I
* must have a member function void Delete() which mimics a destructor
.
More...
#include <BlockAllocator.hpp>
List of all members.
Public Methods |
| BlockAllocator () |
| default constructor.
|
| ~BlockAllocator () |
| default destructor, deletes the pending, previously allocated items.
|
I* | NewItem () |
| allocate an item, I::Init() has been called at least once in the lifetime of the object, but not necessarily in this call of NewItem.
|
void | DeleteItem (I *p) |
| release item and call I::Clear().
|
template<class I> class BlockAllocator
The documentation for this class was generated from the following file:
Generated at Mon Aug 19 10:02:33 2002 for AWFD by
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001
|