--- parser3/src/include/pa_hash.h 2001/10/26 13:48:18 1.45 +++ parser3/src/include/pa_hash.h 2001/11/01 15:45:27 1.49 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_hash.h,v 1.45 2001/10/26 13:48:18 paf Exp $ + $Id: pa_hash.h,v 1.49 2001/11/01 15:45:27 paf Exp $ */ #ifndef PA_HASH_H @@ -16,7 +16,6 @@ #include "pa_types.h" #include "pa_string.h" - /** Pooled hash. @@ -52,6 +51,9 @@ public: /// put a [value] under the [key], return existed or not bool put(const Key& key, Val *value); + + /// remove the [key] + void remove(const Key& key); /* /// dirty hack to allow constant items storage. I long for Hash bool put(const Key& key, const Val *value) { @@ -129,10 +131,10 @@ private: /// pair storage class Pair { - friend Hash; + friend class Hash; uint code; - const Key key; + const Key& key; Val *value; Pair *link; @@ -156,4 +158,5 @@ private: //disabled Hash& operator = (const Hash&) { return *this; } }; + #endif