+/*
+ idealspacing.cc -- implement Idealspacing
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
#include "idealspacing.hh"
#include "p-col.hh"
#include "p-score.hh"
{
#ifndef NPRINT
mtor << "idealspacing {" ;
- mtor << "distance "<<space<< " strength " << hooke ;
- mtor << "left " << left->rank_i() << " right " << right->rank_i() << "}\n";
+ mtor << "distance "<<space_f_<< " strength " << hooke_f_ ;
+ mtor << "left " << left_i_ << " right " << right_i_ << "}\n";
#endif
}
-Idealspacing::Idealspacing(PCol const * l,PCol const * r)
+Idealspacing::Idealspacing()
{
- space = 0.0;
- hooke = 0.0;
- left = l;
- right = r;
+ space_f_ = 0.0;
+ hooke_f_ = 0.0;
+ left_i_ = -1;
+ right_i_ = -1;
}
void
Idealspacing::OK() const
{
-#ifndef NDEBUG
- assert(hooke >= 0 && left && right);
-#endif
+ assert(hooke_f_ >= 0);
}