EvolvingObjects
|
Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000. More...
#include <node_pool.h>
Classes | |
struct | Chunk |
struct | Link |
Public Member Functions | |
MemPool (unsigned int sz) | |
void * | allocate () |
void | deallocate (void *b) |
Private Member Functions | |
void | grow () |
Private Attributes | |
Chunk * | chunks |
const unsigned int | esize |
Link * | head |
Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000.
Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.
Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was modified is included with the above copyright notice.
Definition at line 21 of file node_pool.h.