Paperdef* p=new Paperdef(*paper_);
Score *s = new Score(p);
- for (PCursor<Input_staff*> i(staffs_); i.ok(); i++) {
+ for (iter_top(staffs_,i); i.ok(); i++) {
Staff* staf=i->parse(commands_);
s->add(staf);
}
Input_score::print()const
{
mtor << "Input_score {\n";
- for (PCursor<Input_staff*> i(staffs_); i.ok(); i++) {
+ for (iter_top(staffs_,i); i.ok(); i++) {
i->print();
}
mtor << "}\n";
Line_of_score::TeXstring() const
{
String s("\\vbox{%<- line of score\n");
- for (PCursor<Line_of_staff*> sc(staffs); sc.ok(); sc++){
+ for (iter_top(staffs,sc); sc.ok(); sc++){
s += sc->TeXstring();
if ((sc+1).ok())
s+= "\\interstaffline\n";
p->line=this;
}
- for (PCursor<PStaff*> sc(pscore_->staffs); sc.ok(); sc++)
+ for (iter_top(pscore_->staffs,sc); sc.ok(); sc++)
staffs.bottom().add(new Line_of_staff(this, sc));
}
/* construct a line with the named columns. Make the line field
void
Line_of_score::process()
{
- for (PCursor<Line_of_staff*> i(staffs); i.ok(); i++)
+ for (iter_top(staffs,i); i.ok(); i++)
i->process();
}
{
#ifndef NPRINT
mtor << "start: "<< start<<eol;
- for (PCursor<Voice_element*> vec(elts); vec.ok(); vec++)
+ for (iter_top(elts,vec); vec.ok(); vec++)
vec->print();
#endif
}
Voice::last() const
{
Moment l =start;
- for (PCursor<Voice_element*> vec(elts); vec.ok(); vec++)
+ for (iter_top(elts,vec); vec.ok(); vec++)
l += vec->duration;
return l;
}
{
#ifndef NPRINT
mtor << "voice_element { dur :"<< duration <<"\n";
- for (PCursor<Request*> rc(reqs); rc.ok(); rc++) {
+ for (iter_top(reqs,rc); rc.ok(); rc++) {
rc->print();
}
mtor << "}\n";