X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsequential-iterator.hh;h=2b35bde1f88bd51f1008a96ff057b60c9f7bfb00;hb=fd565020849c9cd24d4e7ce47c50f756198a44c9;hp=de7cb594c7c8ff8ca1b446000c1e6035841ac1a3;hpb=01dd37f55db8ab29f47a65f0576a5cc650c78eeb;p=lilypond.git diff --git a/lily/include/sequential-iterator.hh b/lily/include/sequential-iterator.hh index de7cb594c7..2b35bde1f8 100644 --- a/lily/include/sequential-iterator.hh +++ b/lily/include/sequential-iterator.hh @@ -1,9 +1,20 @@ -/* - sequential-iterator.hh -- declare Sequential_iterator +/* + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2002--2015 Han-Wen Nienhuys - (c) 2002--2004 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef SEQUENTIAL_ITERATOR_HH @@ -12,45 +23,43 @@ #include "music-iterator.hh" #include "protected-scm.hh" - /** Sequential_music iteration: walk each element in turn, and - construct an iterator for every element. - - */ -class Sequential_iterator : public Music_iterator + construct an iterator for every element. +*/ +class Sequential_iterator : public Music_iterator { public: - DECLARE_SCHEME_CALLBACK(constructor, ()); + DECLARE_SCHEME_CALLBACK (constructor, ()); + DECLARE_CLASSNAME (Sequential_iterator); Sequential_iterator (); - Sequential_iterator (Sequential_iterator const&); - virtual void derived_substitute (Context *f, Context *t) ; + Sequential_iterator (Sequential_iterator const &); + virtual void derived_substitute (Context *f, Context *t); virtual void derived_mark () const; virtual void construct_children (); virtual Moment pending_moment () const; - virtual void do_quit(); + virtual void do_quit (); virtual bool ok () const; protected: virtual void process (Moment); - virtual Music_iterator *try_music_in_children (Music *) const; virtual bool run_always () const; + protected: - Music_iterator * iter_; - virtual SCM get_music_list ()const; - virtual void next_element (bool side_effect); + Music_iterator *iter_; + virtual SCM get_music_list () const; + virtual void next_element (bool side_effect); Grace_fixup *get_grace_fixup () const; void next_grace_fixup (); - + private: Moment last_mom_; Moment here_mom_; SCM cursor_; - Grace_fixup * grace_fixups_; - + Grace_fixup *grace_fixups_; }; #endif /* SEQUENTIAL_ITERATOR_HH */