#include "idealspacing.hh"
#include "p-col.hh"
#include "p-score.hh"
-#include "p-staff.hh"
#include "debug.hh"
void
#ifndef NPRINT
mtor << "idealspacing {" ;
mtor << "distance "<<space<< " strength " << hooke ;
- mtor << "left " << left->rank() << " right " << right->rank() << "}\n";
+ mtor << "left " << left->rank_i() << " right " << right->rank_i() << "}\n";
#endif
}
class PCol {
public:
- Link_list<Item const *> its;
- Link_list<Spanner const *> stoppers, starters;
+ Link_list<Item *> its;
+ Link_list<Spanner *> stoppers, starters;
/** prebreak is put before end of line.
if broken here, then (*this) column is discarded, and prebreak
PCol *daddy_l_;
/// if lines are broken then this column is in #line#
- Line_of_score const *line_l_;
+ Line_of_score *line_l_;
/** if lines are broken then this column x-coord #hpos# if not
known, then hpos == -1.(ugh?) */
/* *************** */
/// which one (left =0)
- int rank() const;
+ int rank_i() const;
/// does this column have items
bool used_b() const;
/*
p-col.cc -- implement PCol
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/
#include "p-col.hh"
#include "p-score.hh"
-#include "p-staff.hh"
+
#include "debug.hh"
Interval
}
int
-PCol::rank() const
+PCol::rank_i() const
{
assert(rank_i_ != -1);
return rank_i_;
int
PCol::compare(PCol const &c1, PCol const &c2)
{
- return c1.rank() - c2.rank();
+ return c1.rank_i() - c2.rank_i();
}
void