*/
+
+/*
+ Folded repeats are a stupid idea at this point, so we refrain from
+ implementing get_music () and skip ().
+*/
+
#include "folded-repeat-iterator.hh"
#include "repeated-music.hh"
#include "music-list.hh"
}
Moment
-Folded_repeat_iterator::next_moment () const
+Folded_repeat_iterator::pending_moment () const
{
if (main_iter_p_)
{
- return main_iter_p_->next_moment ();
+ return main_iter_p_->pending_moment ();
}
else
- return main_length_mom_ + alternative_iter_p_->next_moment ();
+ return main_length_mom_ + alternative_iter_p_->pending_moment ();
}
void
}
void
-Folded_repeat_iterator::do_process_and_next (Moment m)
+Folded_repeat_iterator::process (Moment m)
{
if (!m)
{
if (main_iter_p_)
{
- main_iter_p_->process_and_next (m);
+ main_iter_p_->process (m);
if (!main_iter_p_->ok ())
leave_body ();
}
if (alternative_iter_p_)
{
- alternative_iter_p_->process_and_next (m - main_length_mom_);
+ alternative_iter_p_->process (m - main_length_mom_);
if (!alternative_iter_p_->ok ())
{
delete alternative_iter_p_;