2 rod.cc -- implement Rod, Column_rod
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include "dimensions.hh"
13 #include "single-malt-grouping-item.hh"
19 item_l_drul_[LEFT] = item_l_drul_[RIGHT] =0;
23 Column_rod::print () const
26 DOUT << "Column_rod { rank = "
27 << other_l_->rank_i () << ", dist = " << distance_f_ << "}\n";
31 Column_rod::Column_rod ()
38 Column_rod::compare (const Column_rod &r1, const Column_rod &r2)
40 return r1.other_l_->rank_i() - r2.other_l_->rank_i();
45 item_l_drul_[RIGHT]->column_l ()->add_rod
46 (item_l_drul_[LEFT]->column_l (), distance_f_);
47 item_l_drul_[LEFT]->column_l ()->add_rod
48 (item_l_drul_[RIGHT]->column_l (), distance_f_);
52 Column_spring::print () const
55 DOUT << "Column_spring { rank = "
56 << other_l_->rank_i () << ", dist = " << distance_f_ << "}\n";
60 Column_spring::Column_spring ()
67 Column_spring::compare (const Column_spring &r1, const Column_spring &r2)
69 return r1.other_l_->rank_i() - r2.other_l_->rank_i();