--- parser3/src/include/pa_hash.h 2001/03/16 09:26:42 1.24 +++ parser3/src/include/pa_hash.h 2001/03/18 13:22:05 1.27 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_hash.h,v 1.24 2001/03/16 09:26:42 paf Exp $ + $Id: pa_hash.h,v 1.27 2001/03/18 13:22:05 paf Exp $ */ #ifndef PA_HASH_H @@ -21,6 +21,8 @@ public: typedef String Key; typedef void Value; + typedef void (*Foreach_func)(const Key& key, Value *value, void *info); + public: Hash(Pool& apool,bool athread_safe=false) : Pooled(apool) { @@ -53,6 +55,10 @@ public: int size() { return used; } + void foreach(Foreach_func func, void *info=0); + + void clear(); + protected: void construct(Pool& apool, bool athread_safe);