lilypond-1.3.9
[lilypond.git] / flower / dictionary.cc
blob2d200f2e5a60e6f7e781e52d72d49619ed4f6819
2 #if 0
5 /**
6 Dictionary implementation. Please fix me.
8 (neuk. hsearch_* is te dom.)
9 */
10 template<class T>
11 class Dictionary<T>
13 hsearch_data * hash_p_;
15 public:
16 Dictionary ();
17 ~Dictionary ();
18 Dictionary (Dictionary const&);
19 T &elem (String s);
20 T const &elem (String s) const;
21 bool elem_b (String s) const;
22 void add (String, T);
23 void clear ();
26 Dictionary::Dictionary ()
28 hash_p_ = new hsearch_data;
29 hash_p_->table = 0;
31 int start_size = 51;
32 int retval = hcreate_r (start_size, hash_p_);
34 assert (retval);
39 #endif