lilypond-0.0.77.jcn1
[lilypond.git] / src / colhpos.cc
blob530e4d4483c7581ede61c6202bd00d8014bc5da0
1 #include "colhpos.hh"
2 #include "real.hh"
3 #include "debug.hh"
4 #include "const.hh"
5 #include "vector.hh"
7 Col_hpositions::Col_hpositions()
9 energy = INFTY;
12 void
13 Col_hpositions::add( PCol*c)
15 cols.push(c);
18 void
19 Col_hpositions::print() const
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
29 void
30 Col_hpositions::OK()const
32 #ifndef NDEBUG
33 assert(config.size() == cols.size());
34 #endif