X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fcolhpos.hh;h=01a87167ba10fef873a082c095eba138f7949598;hb=refs%2Ftags%2Frelease%2F0.1.61;hp=a1407366eaf6833a7dffba62cf3ad57c66f4f336;hpb=04f01c7e890bd4f1b358378e5911fb7c117c3802;p=lilypond.git diff --git a/lily/include/colhpos.hh b/lily/include/colhpos.hh index a1407366ea..01a87167ba 100644 --- a/lily/include/colhpos.hh +++ b/lily/include/colhpos.hh @@ -1,29 +1,38 @@ /* colhpos.hh -- part of GNU LilyPond - (c) 1997 Han-Wen Nienhuys + (c) 1997--1998 Han-Wen Nienhuys */ #ifndef COLHPOS_HH #define COLHPOS_HH + #include "varray.hh" #include "lily-proto.hh" -typedef Array Line_of_cols; +typedef Array Line_of_cols; struct Col_hpositions { - bool ugh_b_; - Line_of_cols error_col_l_arr_; - Line_of_cols cols; - Array config; - Real energy; - - /* ************** */ - void OK()const; - - Col_hpositions(); - void add( PCol*c); - void print() const; + Line_spacer * spacer_l_; + bool ugh_b_; + Line_of_cols error_col_l_arr_; + Line_of_cols cols; + Array config; + Real energy_f_; + bool satisfies_constraints_b_; + + /* ************** */ + void OK() const; + ~Col_hpositions(); + void solve_line(); + void approximate_solve_line(); + /** generate a solution with no regard to idealspacings or + constraints. should always work */ + void stupid_solution(); + void set_stupid_solution (Vector); + Col_hpositions(); + void add (Paper_column*c); + void print() const; };