--- parser3/src/include/pa_hash.h 2002/08/01 11:26:47 1.56 +++ parser3/src/include/pa_hash.h 2003/01/22 15:39:07 1.58.2.1 @@ -1,7 +1,7 @@ /** @file Parser: hash class decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -9,7 +9,7 @@ #ifndef PA_HASH_H #define PA_HASH_H -static const char* IDENT_HASH_H="$Id: pa_hash.h,v 1.56 2002/08/01 11:26:47 paf Exp $"; +static const char* IDENT_HASH_H="$Date: 2003/01/22 15:39:07 $"; #include "pa_pool.h" #include "pa_types.h" @@ -23,7 +23,7 @@ static const char* IDENT_HASH_H="$Id: pa get returning 0 means there were no such. "put value 0" means "remove" */ -class Hash : public Pooled { +class Hash: public PA_Object { public: typedef String Key; ///< hash Key type. longing for templates @@ -40,11 +40,11 @@ public: public: - Hash(Pool& apool) : Pooled(apool) { + Hash() { construct_new(); } - Hash(const Hash& source) : Pooled(source.pool()){ + Hash(const Hash& source) { construct_copy(source); } @@ -140,7 +140,7 @@ private: Val *value; Pair *link; - void *operator new(size_t allocated, Pool& apool); + void *operator new(size_t size); Pair(uint acode, const Key& akey, Val *avalue, Pair *alink) : code(acode),