]> git.donarmstrong.com Git - lilypond.git/blob - lily/column-x-positions.cc
release: 1.2.14
[lilypond.git] / lily / column-x-positions.cc
1 /*
2   colhpos.cc -- implement Column_x_positions
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "column-x-positions.hh"
10 #include "simple-spacer.hh"     // ugh
11 #include "real.hh"
12 #include "debug.hh"
13
14 Column_x_positions::Column_x_positions()
15 {
16   energy_f_ = infinity_f;
17   satisfies_constraints_b_ = false;
18   spacer_l_ =0;
19 }
20
21 Column_x_positions::~Column_x_positions()
22 {
23
24 }
25
26 void
27 Column_x_positions::add_paper_column (Paper_column*c)
28 {
29   cols_.push (c);
30 }
31
32 void
33 Column_x_positions::print() const
34 {
35 #ifndef NPRINT
36   DEBUG_OUT << "energy : " << energy_f_ << '\n';
37   DEBUG_OUT << "line of " << config_.size() << " cols\n";
38 #endif
39 }
40
41
42
43
44
45
46
47