]> git.donarmstrong.com Git - lilypond.git/blob - lily/colhpos.cc
release: 0.1.0
[lilypond.git] / lily / colhpos.cc
1 #include "colhpos.hh"
2 #include "real.hh"
3 #include "debug.hh"
4 #include "const.hh"
5 #include "vector.hh"
6
7 Col_hpositions::Col_hpositions()
8 {
9     energy = INFTY_f;
10     ugh_b_ = false;
11 }
12
13 void
14 Col_hpositions::add( PCol*c)
15 {
16     cols.push(c);
17 }
18
19 void
20 Col_hpositions::print() const
21 {
22 #ifndef NPRINT
23     mtor << "energy : " << energy << '\n';
24     mtor << "line of " << config.size() << " cols\n";
25     Vector v(config);
26     mtor << v;
27 #endif
28 }
29
30 void
31 Col_hpositions::OK()const
32 {
33 #ifndef NDEBUG
34     assert(config.size() == cols.size());
35 #endif
36 }