2 dictionary.hh -- declare Dictionary
4 source file of the Flower Library
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
18 #include "hash-table.hh"
21 unsigned int string_hash (String);
25 struct Dict_initialiser
33 interface to STL function.
36 class Dictionary : public map<String, V>
42 Dictionary (Dict_initialiser<V> *p)
44 hash_func_ = string_hash;
45 for (Dict_initialiser<V> *q = p; q->key_; q++)
46 (*this) [q->key_] = q->value_;
49 bool elem_b (String s)
51 map<String,V>::const_iterator ki (find (s));
58 #endif // DICTIONARY_HH