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) 1997--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 { | 62 { |
63 public: | 63 public: |
64 int print_smob (SCM, scm_print_state *) const; | 64 int print_smob (SCM, scm_print_state *) const; |
65 SCM mark_smob () const; | 65 SCM mark_smob () const; |
66 static const char * const type_p_name_; | 66 static const char * const type_p_name_; |
67 virtual ~Music_iterator (); | 67 virtual ~Music_iterator (); |
68 protected: | 68 protected: |
69 Moment music_length_; | 69 Moment music_length_; |
70 Moment start_mom_; | 70 Moment start_mom_; |
71 | 71 |
72 DECLARE_CLASSNAME (Music_iterator); | 72 VIRTUAL_CLASS_NAME (Music_iterator); |
73 private: | 73 private: |
74 Music_iterator (Music_iterator const &) = delete; | 74 Music_iterator (Music_iterator const &) = delete; |
75 Music_iterator& operator= (Music_iterator const &) = delete; | 75 Music_iterator& operator= (Music_iterator const &) = delete; |
76 | 76 |
77 public: | 77 public: |
78 Moment music_get_length () const; | 78 Moment music_get_length () const; |
79 // music_start_mom () is calculated relative to the time where the | 79 // music_start_mom () is calculated relative to the time where the |
80 // iterator occurs in the music stream, so it will usually be | 80 // iterator occurs in the music stream, so it will usually be |
81 // non-zero only for expressions starting with grace notes. | 81 // non-zero only for expressions starting with grace notes. |
82 Moment music_start_mom () const; | 82 Moment music_start_mom () const; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 0, 0, 0, \ | 119 0, 0, 0, \ |
120 (), \ | 120 (), \ |
121 "") \ | 121 "") \ |
122 { \ | 122 { \ |
123 Class *c = (new Class); \ | 123 Class *c = (new Class); \ |
124 return c->unprotect (); \ | 124 return c->unprotect (); \ |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 #endif // MUSIC_ITERATOR_HH | 128 #endif // MUSIC_ITERATOR_HH |
LEFT | RIGHT |