LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2002--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 2002--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "lily-imports.hh" | 23 #include "lily-imports.hh" |
24 | 24 |
25 class Volta_repeat_iterator : public Sequential_iterator | 25 class Volta_repeat_iterator : public Sequential_iterator |
26 { | 26 { |
27 public: | 27 public: |
28 DECLARE_SCHEME_CALLBACK (constructor, ()); | 28 DECLARE_SCHEME_CALLBACK (constructor, ()); |
29 Volta_repeat_iterator (); | 29 Volta_repeat_iterator (); |
30 | 30 |
31 void add_repeat_command (SCM); | 31 void add_repeat_command (SCM); |
32 protected: | 32 protected: |
33 virtual SCM get_music_list () const; | 33 SCM get_music_list () const override; |
34 virtual void next_element (bool); | 34 void next_element (bool) override; |
35 virtual void construct_children (); | 35 void construct_children () override; |
36 virtual void process (Moment); | 36 void process (Moment) override; |
37 virtual void derived_mark () const; | 37 void derived_mark () const override; |
38 | 38 |
39 bool first_time_; | 39 bool first_time_; |
40 int alt_count_; | 40 int alt_count_; |
41 int rep_count_; | 41 int rep_count_; |
42 int done_count_; | 42 int done_count_; |
43 SCM alt_restores_; | 43 SCM alt_restores_; |
44 }; | 44 }; |
45 | 45 |
46 Volta_repeat_iterator::Volta_repeat_iterator () | 46 Volta_repeat_iterator::Volta_repeat_iterator () |
47 { | 47 { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 { | 179 { |
180 if (first_time_) | 180 if (first_time_) |
181 { | 181 { |
182 add_repeat_command (ly_symbol2scm ("start-repeat")); | 182 add_repeat_command (ly_symbol2scm ("start-repeat")); |
183 first_time_ = false; | 183 first_time_ = false; |
184 } | 184 } |
185 Sequential_iterator::process (m); | 185 Sequential_iterator::process (m); |
186 } | 186 } |
187 | 187 |
188 IMPLEMENT_CTOR_CALLBACK (Volta_repeat_iterator); | 188 IMPLEMENT_CTOR_CALLBACK (Volta_repeat_iterator); |
LEFT | RIGHT |