diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-11 18:43:08 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-11 18:43:08 +0200 |
commit | d5a38318b3876bbedffe52ca3b378b03ad4d995a (patch) | |
tree | 9aa7022dc9c620f84a2e1798048e0eeebb8e31e5 /includes | |
parent | a9e588bd1a90175f411c7bda93969a9bec090af7 (diff) |
Forgot the decimal versions of the comparators.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BigInt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/BigInt.h b/includes/BigInt.h index a7f5a76..29a2740 100644 --- a/includes/BigInt.h +++ b/includes/BigInt.h @@ -54,6 +54,7 @@ class BigInt { enum comp_t { LT, GT, EQ }; comp_t comp(const BigInt &) const throw (GeneralException); + comp_t comp(unsigned int) const throw (GeneralException); BigInt & neg() throw (GeneralException); @@ -63,11 +64,17 @@ class BigInt { BigInt gcd(const BigInt &) const throw (GeneralException); BigInt lcm(const BigInt &) const throw (GeneralException); + bool operator==(unsigned int) const; bool operator==(const BigInt &) const; + bool operator!=(unsigned int) const; bool operator!=(const BigInt &) const; + bool operator<=(unsigned int) const; bool operator<=(const BigInt &) const; + bool operator>=(unsigned int) const; bool operator>=(const BigInt &) const; + bool operator<(unsigned int) const; bool operator<(const BigInt &) const; + bool operator>(unsigned int) const; bool operator>(const BigInt &) const; BigInt modadd(const BigInt & a, const BigInt & m) const throw (GeneralException); |