lilypond-1.3.67
[lilypond.git] / lily / score-element-info.cc
blob92c1abd453ace9ae0afa7a2cf68aa0baa9e73b81
1 /*
2 score-element-info.cc -- implement Score_element_info
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "score-element-info.hh"
10 #include "request.hh"
11 #include "translator.hh"
12 #include "translator-group.hh"
14 Score_element_info::Score_element_info (Score_element*s_l, Music *r_l)
16 elem_l_ = s_l;
17 req_l_ = r_l;
18 origin_trans_l_ = 0;
22 Score_element_info::Score_element_info()
24 elem_l_ = 0;
25 req_l_ = 0;
26 origin_trans_l_ = 0;
30 Link_array<Translator>
31 Score_element_info::origin_trans_l_arr (Translator* end) const
33 Translator * t = origin_trans_l_;
34 Link_array<Translator> r;
35 do {
36 r.push (t);
37 t = t->daddy_trans_l_;
38 } while (t != end->daddy_trans_l_);
40 return r;