]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/rational.hh
*** empty log message ***
[lilypond.git] / flower / include / rational.hh
index 3cb5fb5d1b8eaef1de900497ed7228bf6b0d0888..8ac80fb1246a0b507f6d842a1d3d230e2f8b24fc 100644 (file)
@@ -3,19 +3,15 @@
 
   source file of the Flower Library
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #ifndef RATIONAL_HH
 #define RATIONAL_HH
 
-#include "compare.hh"
-#include "arithmetic-operator.hh"
-#include "flower-proto.hh"
 #include "string.hh"
 
-
 /**
    Rational numbers.  Included is support for + and - infinity.
  */
@@ -37,8 +33,10 @@ public:
   void set_infinite (int sign);
   bool is_infinity () const;
   void invert ();
-  int num () const { return sign_ * num_; }
-  int den () const { return den_; }
+  int numerator () const { return sign_ * num_; }
+  int denominator () const { return den_; }
+  int num () const { return numerator(); }
+  int den () const { return denominator(); }
 
   Rational trunc_rat () const;
   Rational div_rat (Rational) const;