]> git.donarmstrong.com Git - lilypond.git/blob - lily/notename-table.cc
release: 0.0.49
[lilypond.git] / lily / notename-table.cc
1 /*
2   notename-table.cc -- implement Notename_table
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "notename-table.hh"
10 #include "pointer.tcc"
11 #include "musical-request.hh"
12
13 template class P<Melodic_req>;
14
15 void
16 Notename_table::add(String s, Melodic_req *m_p)
17 {
18     elem(s).set_p(m_p);
19 }
20
21 Melodic_req*
22 Notename_table::get_l(String s)
23 {
24     if (! elt_b(s))
25         return 0;
26     return elem(s);
27 }
28