--- parser3/src/include/pa_pool.h 2001/01/26 15:43:11 1.4 +++ parser3/src/include/pa_pool.h 2001/01/27 15:00:04 1.7 @@ -1,5 +1,5 @@ /* - $Id: pa_pool.h,v 1.4 2001/01/26 15:43:11 paf Exp $ + $Id: pa_pool.h,v 1.7 2001/01/27 15:00:04 paf Exp $ */ #ifndef PA_POOL_H @@ -8,20 +8,31 @@ #include #include "pa_string.h" +#include "pa_hash.h" +#include "pa_array.h" class Pool { public: Pool(); ~Pool(); - void *alloc(size_t size); + void *malloc(size_t size); void *calloc(size_t size); - String *makeString() { + String *make_string() { return new(this) String(this); } - String *makeString(char *src) { + String *make_string(char *src) { return new(this) String(this, src); } + Hash *make_hash() { + return new(this) Hash(this); + } + Array *make_array() { + return new(this) Array(this); + } + Array *make_array(int initial_rows) { + return new(this) Array(this, initial_rows); + } }; #endif