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 child_iter_p_ = src.child_iter_p_->clone ();
24 Music_wrapper_iterator::~Music_wrapper_iterator ()
31 Music_wrapper_iterator::construct_children ()
34 get_iterator_p (dynamic_cast<Music_wrapper const*> (music_l_)->element ());
38 Music_wrapper_iterator::ok () const
40 return child_iter_p_ && child_iter_p_->ok ();
44 Music_wrapper_iterator::process (Moment m)
46 child_iter_p_->process (m);
50 Music_wrapper_iterator::get_music (Moment m)const
52 return child_iter_p_->get_music (m);
56 Music_wrapper_iterator::pending_moment () const
58 return child_iter_p_->pending_moment ();
62 Music_wrapper_iterator::try_music_in_children (Music *m) const
64 return child_iter_p_->try_music (m);