2 simple-music-iterator.cc -- implement Simple_music_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "simple-music-iterator.hh"
14 Simple_music_iterator::Simple_music_iterator ()
17 last_processed_mom_ = -1;
20 Simple_music_iterator::Simple_music_iterator (Simple_music_iterator const &src)
21 : Music_iterator (src)
23 last_processed_mom_ = src.last_processed_mom_;
24 length_mom_ = src.length_mom_;
28 Simple_music_iterator::construct_children ()
30 length_mom_ = music_l_->length_mom ();
34 Simple_music_iterator::ok ()const
36 return last_processed_mom_ < length_mom_;
40 Simple_music_iterator::pending_moment ()const
49 Simple_music_iterator::process (Moment m)
53 try_music () causes trouble for base classes
57 bool b = try_music (music_l_);
59 music_l_->origin ()->warning (_f ("Junking music: `%s'",
60 classname (music_l_)));
64 last_processed_mom_ = m;