/*
- music-wrapper-iterator.cc -- implement
+ music-wrapper-iterator.cc -- implement Music_wrapper_iterator
source file of the GNU LilyPond music typesetter
- (c) 1998 Han-Wen Nienhuys <hanwen@cs.ruu.nl>
+ (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "music-wrapper-iterator.hh"
#include "music-wrapper.hh"
-Music_wrapper_iterator::Music_wrapper_iterator (Music_wrapper *r)
+Music_wrapper_iterator::Music_wrapper_iterator ()
{
child_iter_p_ =0;
- music_l_ = r;
}
IMPLEMENT_IS_TYPE_B1(Music_wrapper_iterator, Music_iterator);
void
Music_wrapper_iterator::construct_children ()
{
- child_iter_p_ = get_iterator_p (music_l_->element_p_);
+ child_iter_p_ = get_iterator_p (music_wrapper_l ()->element_p_);
}
Music_wrapper_iterator::~Music_wrapper_iterator ()
delete child_iter_p_;
}
-
+Music_wrapper*
+Music_wrapper_iterator::music_wrapper_l ()
+{
+ return (Music_wrapper*) music_l_;
+}
bool
Music_wrapper_iterator::ok () const
{
}
void
-Music_wrapper_iterator::process_and_next (Moment m)
+Music_wrapper_iterator::do_process_and_next (Moment m)
{
child_iter_p_->process_and_next (m);
- Music_iterator::process_and_next (m);
+ Music_iterator::do_process_and_next (m);
}
Moment