]> git.donarmstrong.com Git - lilypond.git/blob - lily/repeated-music-iterator.cc
patch::: 1.1.6.jcn1: pats
[lilypond.git] / lily / repeated-music-iterator.cc
1 /*   
2   repeated-music-iterator.cc --  implement Repeated_music_iterator
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
7   
8  */
9
10 #include "repeated-music-iterator.hh"
11 #include "repeated-music.hh"
12 #include "musical-request.hh"
13 #include "translator-group.hh"
14 #include "command-request.hh"
15
16 Repeated_music_iterator::Repeated_music_iterator ()
17 {
18 }
19
20 Repeated_music_iterator::~Repeated_music_iterator ()
21 {
22 }
23
24 void
25 Repeated_music_iterator::construct_children ()
26 {
27   Music_wrapper_iterator::construct_children ();
28   // Sequential_music_iterator::construct_children ();
29 }
30
31 void
32 Repeated_music_iterator::do_process_and_next (Moment m)
33 {
34   if (Music_wrapper_iterator::ok ())
35     Music_wrapper_iterator::do_process_and_next (m);
36 //  else
37     //Sequential_music_iterator::do_process_and_next (m);
38 }
39
40 Music_wrapper*
41 Repeated_music_iterator::music_wrapper_l () const
42 {
43   return ((Repeated_music*)Music_wrapper_iterator::music_l_)->repeat_p_;
44 }
45
46 bool
47 Repeated_music_iterator::ok () const
48 {
49   return Music_wrapper_iterator::ok (); // || Sequential_music_iterator:: ok();
50 }
51
52 Sequential_music*
53 Repeated_music_iterator::sequential_music_l () const
54 {
55   return ((Repeated_music*)Sequential_music_iterator::music_l_)->alternative_p_;
56 }
57
58 void
59 Repeated_music_iterator::start_next_element ()
60 {
61   // Sequential_music_iterator::start_next_element ();
62 }
63
64 void
65 Repeated_music_iterator::leave_element ()
66 {
67   // Sequential_music_iterator::leave_element ();
68 }
69