source file of the GNU LilyPond music typesetter
- (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
void
Music_wrapper_iterator::construct_children ()
{
- child_iter_p_ = get_iterator_p (music_wrapper_l ()->element_p_);
+ child_iter_p_ =
+ get_iterator_p (dynamic_cast<Music_wrapper const*> (music_l_)->element_l ());
}
Music_wrapper_iterator::~Music_wrapper_iterator ()
delete child_iter_p_;
}
-Music_wrapper*
-Music_wrapper_iterator::music_wrapper_l () const
-{
- return (Music_wrapper*) music_l_;
-}
bool
Music_wrapper_iterator::ok () const
{
- return child_iter_p_->ok ();
+ return child_iter_p_ && child_iter_p_->ok ();
}
void
Music_iterator::do_process_and_next (m);
}
+
Moment
Music_wrapper_iterator::next_moment () const
{
return child_iter_p_->next_moment ();
}
+
+Music_iterator*
+Music_wrapper_iterator::try_music_in_children (Music const *m) const
+{
+ return child_iter_p_->try_music (m);
+}