EvolvingObjects
gp_parse_tree::MemPool Class Reference

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 <parse_tree.h>

List of all members.

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

Chunkchunks
const unsigned int esize
Linkhead

Detailed Description

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 22 of file parse_tree.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends