]> git.donarmstrong.com Git - lilypond.git/blob - flower/dictionary.cc
release: 1.0.1
[lilypond.git] / flower / dictionary.cc
1
2 #if 0
3
4
5 /**
6    Dictionary implementation.  Please fix me.
7
8    (neuk. hsearch_* is te dom.)
9  */
10 template<class T>
11 class Dictionary<T>
12 {
13   hsearch_data * hash_p_;
14   
15 public:
16   Dictionary ();
17   ~Dictionary ();
18   Dictionary (Dictionary const&);
19   T &elem (String s);
20   T const &elem (String s) const;
21   bool elt_b (String s) const;
22   void add (String, T);
23   void clear ();
24 }
25
26 Dictionary::Dictionary ()
27 {
28   hash_p_ = new hsearch_data;
29   hash_p_->table = 0;
30
31   int start_size = 51;
32   int retval = hcreate_r (start_size, hash_p_);
33
34   assert (retval);
35 }
36
37
38
39 #endif