--- parser3/src/include/pa_hash.h 2001/10/26 13:48:18 1.45 +++ parser3/src/include/pa_hash.h 2001/11/01 10:59:26 1.48 @@ -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.48 2001/11/01 10:59:26 paf Exp $ */ #ifndef PA_HASH_H @@ -52,6 +52,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 +132,10 @@ private: /// pair storage class Pair { - friend Hash; + friend class Hash; uint code; - const Key key; + const Key& key; Val *value; Pair *link;