From: fred Date: Sun, 24 Mar 2002 19:29:23 +0000 (+0000) Subject: lilypond-0.0.28 X-Git-Tag: release/1.5.59~5523 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4196abd7c05dccf90c57ab8ea7e2e7062419e75f;p=lilypond.git lilypond-0.0.28 --- diff --git a/hdr/break.hh b/hdr/break.hh index 2f471fd4fd..9ecb484e5b 100644 --- a/hdr/break.hh +++ b/hdr/break.hh @@ -8,20 +8,7 @@ #define BREAK_HH #include "varray.hh" #include "proto.hh" -typedef Array Line_of_cols; - -struct Col_configuration { - Line_of_cols cols; - Array config; - Real energy; - - /****************/ - void OK()const; - void setsol(Array); - Col_configuration() ; - void add( PCol*c); - void print() const; -}; +#include "colhpos.hh" struct Break_algorithm { PScore &pscore_; @@ -30,24 +17,25 @@ struct Break_algorithm { /****************/ Break_algorithm(PScore&); + /// check if the spacing/breaking problem is well-stated void problem_OK()const; + /// search all pcols which are breakable. - Array find_breaks() const; + Line_of_cols find_breaks() const; /// helper: solve for the columns in #curline#. - Array solve_line(Line_of_cols) const; + Col_hpositions solve_line(Line_of_cols) const; - /// does curline fit on the paper? bool feasible(Line_of_cols)const; - virtual Array solve()=0; + virtual Array solve()=0; }; /// wordwrap type algorithm: move to next line if current is optimal. struct Word_wrap : Break_algorithm { - virtual Array solve(); + virtual Array solve(); Word_wrap(PScore&); }; #endif // BREAK_HH