DOUT << "fixed at " << fixed_position()<<", ";
assert (pcol_l_);
DOUT << width_.str();
+ Direction d = LEFT;
+ do {
+ for (int i=0; i < rods_[d].size (); i++)
+ rods_[d][i].print ();
+ } while (flip (&d) != LEFT);
+
DOUT <<"}\n";
#endif
}
{
return pcol_l_->rank_i ();
}
+
+void
+Spacer_rod::print ()const
+{
+ DOUT << "Other " << other_idx_ << "dist = " << distance_f_ << '\n';
+}
#include "lily-proto.hh"
#include "pointer.hh"
#include "interval.hh"
-#include "assoc.hh"
+#include "drul-array.hh"
+
+struct Spacer_rod {
+ Real distance_f_;
+ int other_idx_;
+ void print () const;
+};
+
/// helper struct for #Spacing_problem#
struct Colinfo {
Paper_column *pcol_l_;
P<Real> fixpos_p_;
- Assoc<int, Real> min_dists_assoc_;
+
Interval width_;
int rank_i_;
/// did some tricks to make this column come out.
bool ugh_b_;
+
+ Drul_array< Array<Spacer_rod> > rods_;
+
/* *************** */
Colinfo();
Colinfo (Paper_column *,Real const *);