]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/music-wrapper-iterator.hh
3abddfeccfeb5889bf26be403cb0aeab351d1683
[lilypond.git] / lily / include / music-wrapper-iterator.hh
1 /*
2   music-wrapper-iterator.hh -- declare Music_wrapper_iterator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef MUSIC_WRAPPER_ITERATOR_HH
10 #define MUSIC_WRAPPER_ITERATOR_HH
11
12 #include "music-iterator.hh"
13
14 /**
15    The iterator for a #Music_wrapper#.  Since #Music_wrapper# essentially
16    does nothing, this iterator creates a child iterator and delegates
17    all work to that child.
18 */
19 class Music_wrapper_iterator : public Music_iterator
20 {
21 public:
22   DECLARE_SCHEME_CALLBACK (constructor, ());
23   Music_wrapper_iterator ();
24   DECLARE_CLASSNAME(Music_wrapper_iterator);
25
26   virtual void derived_substitute (Context *f, Context *t);
27   virtual void derived_mark () const;
28   virtual void construct_children ();
29   virtual Moment pending_moment () const;
30   virtual void do_quit ();
31   virtual bool ok () const;
32   virtual bool run_always () const;
33 protected:
34   virtual void process (Moment);
35
36   Music_iterator *child_iter_;
37 };
38
39 #endif /* MUSIC_WRAPPER_ITERATOR_HH */
40