2 music-wrapper-iterator.cc -- implement Music_wrapper_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "music-wrapper-iterator.hh"
10 #include "music-wrapper.hh"
13 Music_wrapper_iterator::Music_wrapper_iterator ()
19 Music_wrapper_iterator::do_quit ()
25 Music_wrapper_iterator::derived_mark () const
28 scm_gc_mark (child_iter_->self_scm ());
32 Music_wrapper_iterator::derived_substitute (Context *f, Context *t)
35 child_iter_->substitute_outlet (f, t);
39 Music_wrapper_iterator::construct_children ()
41 Music *my_music = get_music ();
42 Music *child = unsmob_music (my_music->get_property ("element"));
43 child_iter_ = unsmob_iterator (get_iterator (child));
47 Music_wrapper_iterator::ok () const
49 return child_iter_ && child_iter_->ok ();
53 Music_wrapper_iterator::process (Moment m)
55 child_iter_->process (m);
59 Music_wrapper_iterator::pending_moment () const
61 return child_iter_->pending_moment ();
64 IMPLEMENT_CTOR_CALLBACK (Music_wrapper_iterator);
67 Music_wrapper_iterator::run_always () const
69 return child_iter_->run_always ();