lilypond-1.4.4
[lilypond.git] / lily / grob-info.cc
blobc2ed5bd0131ad53c52fe71feba9d336182b2f295
1 /*
2 grob-info.cc -- implement Grob_info
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "grob-info.hh"
10 #include "request.hh"
11 #include "translator.hh"
12 #include "translator-group.hh"
14 Grob_info::Grob_info (Grob*s_l, Music *r_l)
16 elem_l_ = s_l;
17 req_l_ = r_l;
18 origin_trans_l_ = 0;
22 Grob_info::Grob_info ()
24 elem_l_ = 0;
25 req_l_ = 0;
26 origin_trans_l_ = 0;
30 Link_array<Translator>
31 Grob_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 && t != end->daddy_trans_l_);
40 return r;