2 folded-repeat-iterator.hh -- declare Folded_repeat_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 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
21 Music_iterator * main_iter_p_;
22 Music_iterator * alternative_iter_p_;
24 Moment main_length_mom_;
26 Folded_repeat_iterator ();
27 ~Folded_repeat_iterator ();
29 virtual void construct_children ();
30 virtual Moment next_moment () const;
31 virtual bool ok () const;
34 void enter_alternative ();
37 virtual void do_print () const;
38 virtual void do_process_and_next (Moment);
39 virtual Music_iterator *try_music_in_children (Music const *) const;
41 #endif /* FOLDED_REPEAT_ITERATOR_HH */