2 music-wrapper-iterator.cc -- implement Music_wrapper_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "music-wrapper-iterator.hh"
11 #include "music-wrapper.hh"
13 Music_wrapper_iterator::Music_wrapper_iterator ()
18 Music_wrapper_iterator::Music_wrapper_iterator (Music_wrapper_iterator const &src)
19 : Music_iterator (src)
21 if (src.child_iter_p_)
22 child_iter_p_ = src.child_iter_p_->clone ();
27 Music_wrapper_iterator::~Music_wrapper_iterator ()
34 Music_wrapper_iterator::construct_children ()
37 get_iterator_p (dynamic_cast<Music_wrapper const*> (music_l_)->element ());
41 Music_wrapper_iterator::ok () const
43 return child_iter_p_ && child_iter_p_->ok ();
46 Music_wrapper_iterator::skip (Moment m)
49 FIXME: should make sure that the initial try_music () is skipped as
52 iter = get_iterator (Side_effect_music); // eg. property setting
57 child_iter_p_->skip (m);
61 Music_wrapper_iterator::process (Moment m)
63 child_iter_p_->process (m);
67 Music_wrapper_iterator::get_music (Moment m)const
69 return child_iter_p_->get_music (m);
73 Music_wrapper_iterator::pending_moment () const
75 return child_iter_p_->pending_moment ();
79 Music_wrapper_iterator::try_music_in_children (Music *m) const
81 return child_iter_p_->try_music (m);
84 IMPLEMENT_CTOR_CALLBACK(Music_wrapper_iterator);