2 dictionary.hh -- declare Dictionary
4 source file of the Flower Library
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
20 unsigned int string_hash (String);
23 struct Dict_initialiser
31 interface to STL function.
34 class Dictionary : public map<String, V>
40 Dictionary (Dict_initialiser<V> *p)
42 hash_func_ = string_hash;
43 for (Dict_initialiser<V> *q = p; q->key_; q++)
44 (*this) [q->key_] = q->value_;
47 bool elem_b (String s)
49 map<String,V>::const_iterator ki (find (s));
56 #endif // DICTIONARY_HH