2 dictionary.hh -- declare Dictionary
4 source file of the Flower Library
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
16 #include "hash-table.hh"
19 unsigned int string_hash (String);
23 struct Dict_initialiser
31 class Dictionary : public Hash_table<String, V>
36 hash_func_ = string_hash;
38 Dictionary (Dict_initialiser<V> *p)
40 hash_func_ = string_hash;
41 for (Dict_initialiser<V> *q = p; q->key_; q++)
42 elem (q->key_) = q->value_;
46 friend class Dictionary_iter<V>;
50 #endif // DICTIONARY_HH