From 4c67a449e01a229165a8fd5f26c06cb90ba97346 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 31 Jan 2011 12:54:41 -0200 Subject: Document Interval::delta(). --- flower/include/interval.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flower') diff --git a/flower/include/interval.hh b/flower/include/interval.hh index 9c831816c4..be7074c242 100644 --- a/flower/include/interval.hh +++ b/flower/include/interval.hh @@ -68,6 +68,8 @@ struct Interval_t : public Drul_array at (RIGHT) = max (at (RIGHT), p); } T length () const; + + // Returns RIGHT - LEFT, even if the interval is empty. T delta () const; void set_empty (); void set_full (); -- cgit v1.2.3