]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/rational.hh
2003 -> 2004
[lilypond.git] / flower / include / rational.hh
index 427eab9bf60debe3d9000db98bdb1dfbc0bc22f1..4c4b0a3891dbfeb74146715c466d94c22161edfd 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the Flower Library
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -35,10 +35,7 @@ class Rational {
 
 public:
   void set_infinite (int sign);
-  bool infty_b () const
-    {
-      return sign_ == 2 || sign_ == -2;
-    }
+  bool is_infinity () const;
   void invert ();
   int num () const { return sign_ * num_; }
   int den () const { return den_; }
@@ -70,7 +67,7 @@ public:
   Rational &operator %= (Rational);
   static int compare (Rational const&, Rational const&);
   int sign () const;
-  String string () const;
+  String to_string () const;
 };
 
 IMPLEMENT_ARITHMETIC_OPERATOR (Rational, / );