Returns a copy of d_value to enable public access of GMP and CLN data.
~Integer() {}
+ /**
+ * Returns a copy of d_value to enable public access of CLN data.
+ */
+ cln::cl_I getValue() const
+ {
+ return d_value;
+ }
+
Integer& operator=(const Integer& x){
if(this == &x) return *this;
d_value = x.d_value;
~Integer() {}
+ /**
+ * Returns a copy of d_value to enable public access of GMP data.
+ */
+ mpz_class getValue() const
+ {
+ return d_value;
+ }
+
Integer& operator=(const Integer& x){
if(this == &x) return *this;
d_value = x.d_value;
~Rational() {}
+ /**
+ * Returns a copy of d_value to enable public access of CLN data.
+ */
+ cln::cl_RA getValue() const
+ {
+ return d_value;
+ }
/**
* Returns the value of numerator of the Rational.
}
~Rational() {}
+ /**
+ * Returns a copy of d_value to enable public access of GMP data.
+ */
+ mpq_class getValue() const
+ {
+ return d_value;
+ }
+
/**
* Returns the value of numerator of the Rational.
* Note that this makes a deep copy of the numerator.