]> git.donarmstrong.com Git - lilypond.git/blob - lily/event-iterator.cc
Run `make grand-replace'.
[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--2008 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 "warn.hh"
17
18 Event_iterator::Event_iterator ()
19 {
20 }
21
22 void
23 Event_iterator::construct_children ()
24 {
25   descend_to_bottom_context ();
26   Simple_music_iterator::construct_children ();
27 }
28
29 void
30 Event_iterator::process (Moment m)
31 {
32   if (last_processed_mom_ < Moment (0))
33     report_event (get_music ());
34
35   Simple_music_iterator::process (m);
36 }
37
38 IMPLEMENT_CTOR_CALLBACK (Event_iterator);