6 Idealspacing::print() const
9 mtor
<< "idealspacing {" ;
10 mtor
<< "distance "<<space
<< " strength " << hooke
<< "}\n";
14 Idealspacing::Idealspacing(const PCol
* l
,const PCol
* r
)
23 Idealspacing::OK() const
26 assert(hooke
>= 0 && left
&& right
);
30 /****************************************************************/
37 for (PCursor
<const Item
*> ic(its
); ic
.ok(); ic
++)
40 w
.unite(Interval(0,0));
49 mtor
<< "# symbols: " << its
.size() ;
55 mtor
<< "extent: " << width().min
<< ", " << width().max
<< "\n";
61 PCol::compare(const PCol
&, const PCol
&)
70 if (prebreak
|| postbreak
) {
71 assert(prebreak
&&postbreak
);
72 assert(prebreak
->daddy
== this);
73 assert(postbreak
->daddy
== this);
84 prebreak
= new PCol(this);
85 postbreak
= new PCol(this);
90 PCol::breakable() const
92 return prebreak
||postbreak
;
95 PCol::PCol(PCol
*parent
) {
112 PCol::add(const Item
*i
)