2 break-algorithm.hh -- declare Break_algorithm
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "interval.hh"
13 #include "column-x-positions.hh"
15 /** Class representation of an algorithm which decides where to put
16 the column, and where to break lines.
26 vector<Grob*> find_breaks () const;
27 vector<int> find_break_indices () const;
28 void solve_line (Column_x_positions *) const;
29 bool feasible (vector<Grob*> const &) const;
31 Simple_spacer_wrapper *generate_spacing_problem (vector<Grob*> const &,
33 virtual vector<Column_x_positions> do_solve () const = 0;
36 virtual ~Break_algorithm ();
37 Simple_spacer *(*get_line_spacer) ();
39 void set_pscore (Paper_score *);
40 vector<Column_x_positions> solve () const;