--- parser3/src/include/pa_array.h 2001/01/29 20:46:21 1.12 +++ parser3/src/include/pa_array.h 2001/02/11 11:27:24 1.13 @@ -1,5 +1,5 @@ /* - $Id: pa_array.h,v 1.12 2001/01/29 20:46:21 paf Exp $ + $Id: pa_array.h,v 1.13 2001/02/11 11:27:24 paf Exp $ */ /* @@ -20,12 +20,11 @@ #include +#include "pa_pool.h" #include "pa_types.h" #include "pa_string.h" -class Pool; - -class Array { +class Array : public Pooled { public: typedef void Item; @@ -37,7 +36,6 @@ public: public: - void *operator new(size_t size, Pool& apool); Array(Pool& apool, int initial_rows=CR_INITIAL_ROWS_DEFAULT); int size() const { return fused_rows; } @@ -51,11 +49,6 @@ public: return static_cast(get(index)); } -protected: - - // the pool I'm allocated on - Pool& pool; - private: struct Chunk {