2 global-acceptor.cc -- implement
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "global-acceptor.hh"
12 #include "score-column.hh"
14 Global_acceptor::Global_acceptor()
21 Global_acceptor::ancestor_l(int)
27 Global_acceptor::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_acceptor::depth_i()const
45 Global_acceptor::set_score(Score
*s
)
48 last_mom_
= score_l_
->music_p_
->time_int().max();
52 Global_acceptor::modify_next(Moment
&w
)
54 while (extra_mom_pq_
.size() &&
55 extra_mom_pq_
.front() <= w
)
57 w
=extra_mom_pq_
.get();
61 Global_acceptor::moments_left_i()const
63 return extra_mom_pq_
.size();
67 Global_acceptor::prepare(Moment
)