6 Idealspacing::print() const
9 mtor
<< "idealspacing {" ;
10 mtor
<< "distance "<<space
<< " strength " << hooke
<< "}\n";
14 Idealspacing::Idealspacing(const PCol
* l
,const PCol
* r
)
22 Idealspacing::OK() const
25 assert(hooke
>= 0 && left
&& right
);
29 /****************************************************************/
36 for (PCursor
<const Item
*> ic(its
); ic
.ok(); ic
++)
39 w
.unite(Interval(0,0));
48 mtor
<< "# symbols: " << its
.size() ;
49 mtor
<< "breakable: " << breakable
<<"\n";
50 mtor
<< "extent: " << width().min
<< ", " << width().max
<< "\n";
56 PCol::compare(const PCol
&, const PCol
&)
65 if (prebreak
|| postbreak
) {
77 prebreak
= new PCol(this);
78 postbreak
= new PCol(this);
83 PCol::PCol(PCol
*parent
) {
95 delete prebreak
; // no recursion!
101 PCol::add(const Item
*i
)