]> git.donarmstrong.com Git - lilypond.git/blob - src/colhpos.cc
release: 0.0.28
[lilypond.git] / src / 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;
10 }
11
12 void
13 Col_hpositions::add( PCol*c)
14 {
15     cols.push(c);
16 }
17
18 void
19 Col_hpositions::print() const
20 {
21 #ifndef NPRINT
22     mtor << "energy : " << energy << '\n';
23     mtor << "line of " << config.size() << " cols\n";
24     Vector v(config);
25     mtor << v;
26 #endif
27 }
28
29 void
30 Col_hpositions::OK()const
31 {
32 #ifndef NDEBUG
33     assert(config.size() == cols.size());
34 #endif
35 }