source file of the Flower Library
- (c) 1996, 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996, 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <math.h>
#include "interval.hh"
#include "string.hh"
-#include "flower-debug.hh"
-template<class T>
-void
-Interval_t<T>::print () const
-{
- fdebug << str ();
-}
template<class T>
int
template<class T>
void
-Interval_t<T>::set_empty()
+Interval_t<T>::set_empty ()
{
- elem (LEFT) = (T) infinity();
- elem (RIGHT) = (T) -infinity();
+ elem (LEFT) = (T) infinity ();
+ elem (RIGHT) = (T) -infinity ();
}
template<class T>
T
-Interval_t<T>::length() const
+Interval_t<T>::length () const
{
if (elem (RIGHT) < elem (LEFT))
return 0;
template<class T>
String
-Interval_t<T>::str() const
+Interval_t<T>::str () const
{
- if (empty_b())
+ if (empty_b ())
return "[empty]";
String s ("[");
#define INTERVAL__INSTANTIATE(T) struct Interval_t<T>;\
-template int Interval__compare(const Interval_t<T>&,Interval_t<T> const&)
+template int Interval__compare (const Interval_t<T>&,Interval_t<T> const&)
#endif // INTERVAL_TCC