#include <mempool.h>
Inheritance diagram for MemPoolObject:
Public Attributes | |
S | data |
MemPoolObject< S > * | admin_next |
int | admin_length |
The wrapper adds two admin data members to S, as a union. These members allow the class MemPool<S> to keep track of free allocated memory blocks in a linked list.
If you need a large number of small (one to two element) arrays of type S, wrap S as a MemPoolObject<S> and allocate memory using a MemPool<S> object. Not useful if sizeof(S) < 4.
Definition at line 141 of file mempool.h.
|
Definition at line 144 of file mempool.h. Referenced by MemPool< S >::Allocate(), MemPool< S >::allocate_block2(), MemPool< S >::Deallocate(), and MemPool< S >::FreeBlocks2(). |
|
Definition at line 143 of file mempool.h. Referenced by MemPool< S >::Allocate(), MemPool< S >::allocate_block1(), MemPool< S >::allocate_block2(), MemPool< S >::Deallocate(), MemPool< S >::FreeBlocks1(), and MemPool< S >::FreeBlocks2(). |
|
Definition at line 142 of file mempool.h. Referenced by WebNode::AppendFromLink(). |