]> git.donarmstrong.com Git - lilypond.git/blob - lily/event-iterator.cc
Merge with git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond.git
[lilypond.git] / lily / event-iterator.cc
1 /*
2   event-chord-iterator.cc -- implement Event_chord_iterator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "event-iterator.hh"
10
11 #include "context.hh"
12 #include "duration.hh"
13 #include "input.hh"
14 #include "international.hh"
15 #include "music.hh"
16 #include "pitch.hh"
17 #include "warn.hh"
18
19 Event_iterator::Event_iterator ()
20 {
21 }
22
23 void
24 Event_iterator::construct_children ()
25 {
26   descend_to_bottom_context ();
27   Simple_music_iterator::construct_children ();
28 }
29
30 void
31 Event_iterator::process (Moment m)
32 {
33   if (last_processed_mom_ < Moment (0))
34     report_event (get_music ());
35
36   Simple_music_iterator::process (m);
37 }
38
39 IMPLEMENT_CTOR_CALLBACK (Event_iterator);