2 folded-repeat-iterator.hh -- declare Folded_repeat_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef FOLDED_REPEAT_ITERATOR_HH
11 #define FOLDED_REPEAT_ITERATOR_HH
13 #include "music-iterator.hh"
16 Iterate through a repeated section: first do the body, then
17 all alternatives in parallel.
19 class Folded_repeat_iterator : public Music_iterator
22 VIRTUAL_COPY_CONS (Music_iterator);
23 DECLARE_SCHEME_CALLBACK(constructor, ());
25 Folded_repeat_iterator (Folded_repeat_iterator const &src);
26 Folded_repeat_iterator ();
27 virtual void derived_mark () const;
28 virtual void construct_children ();
29 virtual Moment pending_moment () const;
30 virtual void do_quit();
31 virtual bool ok () const;
34 void enter_alternative ();
37 virtual void process (Moment);
38 virtual Music_iterator *try_music_in_children (Music *) const;
41 Music_iterator * main_iter_;
42 Music_iterator * alternative_iter_;
44 Moment main_length_mom_;
46 #endif /* FOLDED_REPEAT_ITERATOR_HH */