2 global-translator.cc -- implement
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "global-translator.hh"
12 #include "score-column.hh"
14 Global_translator::Global_translator()
21 Global_translator::ancestor_l (int)
27 Global_translator::add_moment_to_process (Moment m)
32 for (int i=0; i < extra_mom_pq_.size(); i++)
33 if (extra_mom_pq_[i] == m)
35 extra_mom_pq_.insert (m);
39 Global_translator::depth_i()const
45 Global_translator::set_score (Score *s)
48 last_mom_ = score_l_->music_p_->time_int().max ();
52 Global_translator::modify_next (Moment &w)
54 while (extra_mom_pq_.size() &&
55 extra_mom_pq_.front() <= w)
57 w =extra_mom_pq_.get();
61 Global_translator::moments_left_i()const
63 return extra_mom_pq_.size();
67 Global_translator::prepare (Moment)
72 IMPLEMENT_IS_TYPE_B1(Global_translator, Translator);