edu.toronto.cs.tp.cvcl
Class Rational

java.lang.Object
  extended by edu.toronto.cs.tp.cvcl.Rational

public class Rational
extends java.lang.Object


Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
  Rational()
           
  Rational(int n, int d)
           
protected Rational(long cPtr, boolean cMemoryOwn)
           
  Rational(Rational n)
           
 
Method Summary
 void delete()
           
protected static long getCPtr(Rational obj)
           
 Rational getDenominator()
           
 int getInt()
           
 Rational getNumerator()
           
 boolean isInteger()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

Rational

protected Rational(long cPtr,
                   boolean cMemoryOwn)

Rational

public Rational()

Rational

public Rational(Rational n)

Rational

public Rational(int n,
                int d)
Method Detail

delete

public void delete()

getCPtr

protected static long getCPtr(Rational obj)

getNumerator

public Rational getNumerator()

getDenominator

public Rational getDenominator()

isInteger

public boolean isInteger()

getInt

public int getInt()