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