OLD | NEW |
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) 2000--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 2000--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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "music-iterator.hh" | 23 #include "music-iterator.hh" |
24 | 24 |
25 /* | 25 /* |
26 Iterator for atomic music objects: events are generated at the | 26 Iterator for atomic music objects: events are generated at the |
27 beginning and at the end of the music. | 27 beginning and at the end of the music. |
28 */ | 28 */ |
29 class Simple_music_iterator : public Music_iterator | 29 class Simple_music_iterator : public Music_iterator |
30 { | 30 { |
31 protected: | 31 protected: |
32 DECLARE_CLASSNAME (Simple_music_iterator); | 32 OVERRIDE_CLASS_NAME (Simple_music_iterator); |
33 | 33 |
34 Moment last_processed_mom_; | 34 Moment last_processed_mom_; |
35 public: | 35 public: |
36 DECLARE_SCHEME_CALLBACK (constructor, ()); | 36 DECLARE_SCHEME_CALLBACK (constructor, ()); |
37 Simple_music_iterator (); | 37 Simple_music_iterator (); |
38 virtual void process (Moment); | 38 void process (Moment) override; |
39 virtual bool ok ()const; | 39 bool ok ()const override; |
40 virtual Moment pending_moment ()const; | 40 Moment pending_moment ()const override; |
41 }; | 41 }; |
42 | 42 |
43 #endif /* SIMPLE_MUSIC_ITERATOR_HH */ | 43 #endif /* SIMPLE_MUSIC_ITERATOR_HH */ |
44 | 44 |
OLD | NEW |