]> git.donarmstrong.com Git - lilypond.git/blobdiff - src/scoreline.cc
release: 0.0.18
[lilypond.git] / src / scoreline.cc
index 7e40c6a76a7a23892ef54341f240e9a1f4abd5fc..788efd5dabc97bcc0d56fae8800bd87cc6de8517 100644 (file)
@@ -22,17 +22,17 @@ Line_of_score::TeXstring() const
 }
 
 
-Line_of_score::Line_of_score(svec<const PCol *> sv,
-                            const PScore *ps)
+Line_of_score::Line_of_score(svec<PCol *> sv,
+                            PScore *ps)
 {
-    score = ps;
+    pscore_ = ps;
     for (int i=0; i< sv.sz(); i++) {
        PCol *p=(PCol *) sv[i];
        cols.bottom().add(p);
        p->line=this;
     }
 
-    for (PCursor<PStaff*> sc(score->staffs); sc.ok(); sc++)
+    for (PCursor<PStaff*> sc(pscore_->staffs); sc.ok(); sc++)
        staffs.bottom().add(new Line_of_staff(this, sc));    
 }
 /* construct a line with the named columns. Make the line field
@@ -41,3 +41,11 @@ Line_of_score::Line_of_score(svec<const PCol *> sv,
     #sv# isn't really const!!
     */
 
+
+void
+Line_of_score::process()
+{
+    for (PCursor<Line_of_staff*> i(staffs); i.ok(); i++)
+       i->process();
+}
+