]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/colhpos.cc
release: 0.1.12
[lilypond.git] / lily / colhpos.cc
index aade26ac49beb35a2888ddaf98bcb650611540dd..62cc881bdebe42ea1aceaa27f46329e2c6818513 100644 (file)
 
 Col_hpositions::Col_hpositions()
 {
-    energy_f_ = infinity_f;
-    ugh_b_ = false;
-    satisfies_constraints_b_ = false;
-    spacer_l_ =0;
+  energy_f_ = infinity_f;
+  ugh_b_ = false;
+  satisfies_constraints_b_ = false;
+  spacer_l_ =0;
 }
 
 Col_hpositions::~Col_hpositions()
@@ -26,49 +26,49 @@ Col_hpositions::~Col_hpositions()
 }
 
 void
-Col_hpositions::add( PCol*c)
+Col_hpositions::add (Paper_column*c)
 {
-    cols.push(c);
+  cols.push (c);
 }
 
 void
 Col_hpositions::print() const
 {
 #ifndef NPRINT
-    mtor << "energy : " << energy_f_ << '\n';
-    mtor << "line of " << config.size() << " cols\n";
-    Vector v(config);
-    mtor << v;
+  DOUT << "energy : " << energy_f_ << '\n';
+  DOUT << "line of " << config.size() << " cols\n";
+  Vector v (config);
+  DOUT << v;
 #endif
 }
 
 void
-Col_hpositions::OK()const
+Col_hpositions::OK() const
 {
 #ifndef NDEBUG
-    assert(config.size() == cols.size());
+  assert (config.size() == cols.size ());
 #endif
 }
 
 void
 Col_hpositions::stupid_solution()
 {
-    energy_f_ = infinity_f;
-    ugh_b_ = true;
-    config = spacer_l_->default_solution();
+  energy_f_ = infinity_f;
+  ugh_b_ = true;
+  config = spacer_l_->default_solution();
 }
 
 void
 Col_hpositions::solve_line() 
 {
-    spacer_l_->solve(this);
+  spacer_l_->solve (this);
 }
 
 
 void
 Col_hpositions::approximate_solve_line() 
 {
-    spacer_l_->lower_bound_solution(this);
+  spacer_l_->lower_bound_solution (this);
 }