2 break-algorithm.hh -- declare Break_algorithm
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
14 #include "interval.hh"
15 #include "lily-proto.hh"
16 #include "column-x-positions.hh"
19 /** Class representation of an algorithm which decides where to put
20 the column, and where to break lines.
25 class Break_algorithm {
30 Link_array<Grob> find_breaks () const;
31 Array<int> find_break_indices () const;
32 void solve_line (Column_x_positions*) const;
33 bool feasible (Link_array<Grob> const &) const;
35 Simple_spacer_wrapper* generate_spacing_problem (Link_array<Grob> const &, Interval) const;
37 virtual Array<Column_x_positions> do_solve () const=0;
40 Simple_spacer* (*get_line_spacer) ();
42 void set_pscore (Paper_score*);
43 Array<Column_x_positions> solve () const;