2 unfolded-repeat-iterator.hh -- declare Unfolded_repeat_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef UNFOLDED_REPEAT_ITERATOR_HH
11 #define UNFOLDED_REPEAT_ITERATOR_HH
13 #include "music-iterator.hh"
16 Iterate repeats. First do body, then alternatives one by one,
17 optionally interspersed by the body.
19 class Unfolded_repeat_iterator : public Music_iterator
23 How often have we done the body (assuming bodies are interspersed.)?
28 /// unfold everything, or do volta?
31 /// are we busy doing the body?
34 /** How far have we progressed into the repeat.
35 This excludes the elt currently being iterated.
38 int alternative_count_i_;
39 Music_iterator * current_iter_p_;
41 /// pointer to the alternative that will be processed next.
42 SCM alternative_cons_;
43 ~Unfolded_repeat_iterator();
44 Unfolded_repeat_iterator ();
48 virtual void construct_children ();
49 virtual Moment next_moment () const;
50 virtual void do_process_and_next (Moment);
51 virtual Music_iterator *try_music_in_children (Music *) const;
53 virtual bool ok () const;
54 virtual void next_element ();
55 virtual void do_print () const;
57 #endif /* UNFOLDED_REPEAT_ITERATOR_HH */