]> git.donarmstrong.com Git - lilypond.git/blob - lily/audio-element-info.cc
release: 1.3.131
[lilypond.git] / lily / audio-element-info.cc
1 /*
2   Audio-element-info.cc -- implement Audio_element_info
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "audio-element-info.hh"
10 #include "translator-group.hh"
11
12 Audio_element_info::Audio_element_info (Audio_element*s_l, Music *r_l)
13 {
14   elem_l_ = s_l;
15   origin_trans_l_ =0;
16   req_l_ = r_l;
17 }
18
19
20 Audio_element_info::Audio_element_info()
21 {
22   elem_l_ = 0;
23   req_l_ = 0;
24   origin_trans_l_ =0;
25 }
26
27
28 Link_array<Translator>
29 Audio_element_info::origin_trans_l_arr (Translator* end) const
30 {
31   Translator * t = origin_trans_l_;
32   Link_array<Translator> r;
33   do {
34     r.push (t);
35     t = t->daddy_trans_l_;
36   } while (t && t != end->daddy_trans_l_);
37   
38   return r;
39 }