2 colhpos.cc -- implement Column_x_positions
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "line-spacer.hh"
15 Column_x_positions::Column_x_positions()
17 energy_f_ = infinity_f;
19 satisfies_constraints_b_ = false;
23 Column_x_positions::~Column_x_positions()
29 Column_x_positions::add_paper_column (Paper_column*c)
35 Column_x_positions::print() const
38 DOUT << "energy : " << energy_f_ << '\n';
39 DOUT << "line of " << config.size() << " cols\n";
46 Column_x_positions::OK() const
49 assert (config.size() == cols.size ());
54 Column_x_positions::set_stupid_solution(Vector v)
56 energy_f_ = infinity_f;
62 Column_x_positions::stupid_solution()
64 set_stupid_solution (spacer_l_->default_solution());
68 Column_x_positions::solve_line()
70 spacer_l_->solve (this);
75 Column_x_positions::approximate_solve_line()
77 spacer_l_->lower_bound_solution (this);