]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/interval.tcc
release: 1.3.145
[lilypond.git] / flower / include / interval.tcc
index df74ef31640a01397dd012dfc258c23ab02568ce..c78b476a91a4cc361845ca0ec801e5acd95431b6 100644 (file)
@@ -3,7 +3,7 @@
 
   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
@@ -61,15 +54,15 @@ Interval__compare (const Interval_t<T>&a,Interval_t<T> const&b)
 
 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;
@@ -119,9 +112,9 @@ intersect (Interval_t<T> x, Interval_t<T> const &y)
 
 template<class T>
 String
-Interval_t<T>::str() const
+Interval_t<T>::str () const
 {
-  if (empty_b())
+  if (empty_b ())
     return "[empty]";
   String s ("[");
  
@@ -137,6 +130,6 @@ Interval_t<T>::elem_b (T r)
 
 
 #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