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>
9 #include "column-x-positions.hh"
12 #include "line-spacer.hh"
14 Column_x_positions::Column_x_positions()
16 energy_f_ = infinity_f;
17 satisfies_constraints_b_ = false;
21 Column_x_positions::~Column_x_positions()
27 Column_x_positions::add_paper_column (Paper_column*c)
33 Column_x_positions::print() const
36 DEBUG_OUT << "energy : " << energy_f_ << '\n';
37 DEBUG_OUT << "line of " << config_.size() << " cols\n";
42 Column_x_positions::OK() const
45 assert (config_.size() == cols_.size ());
51 Column_x_positions::stupid_solution()
53 // set_stupid_solution (spacer_l_->default_solution());
57 Column_x_positions::solve_line()
59 spacer_l_->solve (this);
64 Column_x_positions::approximate_solve_line()
66 spacer_l_->lower_bound_solution (this);