QtBigInt
Loading...
Searching...
No Matches
BigInt Class Reference

The BigInt class - c++ minigmp wrapper. More...

#include <bigint.h>

Collaboration diagram for BigInt:
Collaboration graph

Public Member Functions

 BigInt ()
 
 BigInt (const BigInt &val, int bitCount=-1)
 
 BigInt (const std::string &imput, int base=10)
 
 BigInt (intMpz val)
 
 BigInt (char item, unsigned int size, int base)
 
std::string getString (int base=10) const
 
 ~BigInt ()
 
BigInt & powm (const BigInt &pow, const BigInt &mod)
 
BigInt & pow (uIntMpz pow)
 
BigInt & log (int base)
 
int sizeBits () const
 Returns the size of the number in bits.
 
int sizeBytes () const
 
int longBits () const
 Returns the current length of the number in bits.
 
int longBytes () const
 
int sizeType () const
 
bool isPrime (bool absalut=false) const
 
BigInt & gcd (const BigInt &a, const BigInt &b)
 
void fromHex (const std::string &hex)
 
BigInt & toNegative ()
 
BigInt & operator= (const BigInt &val)
 
BigInt & operator= (const std::string &imput)
 
BigInt & operator= (intMpz val)
 
BigInt & operator-- ()
 
BigInt & operator++ ()
 
BigInt operator-- (int)
 
BigInt operator++ (int)
 

Static Public Member Functions

static BigInt powm (BigInt val, const BigInt &pow, const BigInt &mod)
 
static BigInt bigPow10 (unsigned short pow)
 Returns 10 raised to the power of pow (10 ^ pow).
 

Friends

BigInt MINIGMPSHARED_EXPORT operator+ (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator+ (BigInt left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator+ (BigInt left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator+ (intMpz left, BigInt right)
 
BigInt MINIGMPSHARED_EXPORT operator+ (const std::string &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator+= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator+= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator+= (BigInt &left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator- (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator- (BigInt left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator- (BigInt left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator- (intMpz right, BigInt left)
 
BigInt MINIGMPSHARED_EXPORT operator- (const std::string &right, const BigInt &left)
 
BigInt MINIGMPSHARED_EXPORT operator- (BigInt val)
 
BigInt MINIGMPSHARED_EXPORT & operator-= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator-= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator-= (BigInt &left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator/ (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator/ (BigInt left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator/ (BigInt left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator/ (intMpz left, BigInt right)
 
BigInt MINIGMPSHARED_EXPORT operator/ (const std::string &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator/= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator/= (BigInt &left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT & operator/= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator* (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator* (BigInt left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator* (BigInt left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator* (intMpz left, BigInt right)
 
BigInt MINIGMPSHARED_EXPORT & operator*= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator*= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator*= (BigInt &left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator% (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator% (BigInt left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT operator% (BigInt left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator% (intMpz left, BigInt right)
 
BigInt MINIGMPSHARED_EXPORT operator% (const std::string &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator%= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator%= (BigInt &left, const std::string &right)
 
BigInt MINIGMPSHARED_EXPORT & operator%= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator<< (BigInt left, int right)
 
BigInt MINIGMPSHARED_EXPORT operator>> (BigInt left, int right)
 
BigInt MINIGMPSHARED_EXPORT & operator<<= (BigInt &left, int right)
 
BigInt MINIGMPSHARED_EXPORT & operator>>= (BigInt &left, int right)
 
bool MINIGMPSHARED_EXPORT operator== (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator== (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator== (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator== (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator== (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator== (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator!= (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator!= (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator!= (const BigInt &left, const std::string &str)
 
bool MINIGMPSHARED_EXPORT operator!= (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator!= (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator!= (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator< (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator< (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator< (const BigInt &left, const std::string &str)
 
bool MINIGMPSHARED_EXPORT operator< (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator< (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator< (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator> (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator> (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator> (const BigInt &left, const std::string &str)
 
bool MINIGMPSHARED_EXPORT operator> (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator> (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator> (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator<= (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator<= (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator<= (const BigInt &left, const std::string &str)
 
bool MINIGMPSHARED_EXPORT operator<= (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator<= (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator<= (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator>= (const BigInt &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator>= (const BigInt &left, intMpz right)
 
bool MINIGMPSHARED_EXPORT operator>= (const BigInt &left, const std::string &str)
 
bool MINIGMPSHARED_EXPORT operator>= (const std::string &left, const BigInt &right)
 
bool MINIGMPSHARED_EXPORT operator>= (const BigInt &left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator>= (intMpz left, const std::string &right)
 
bool MINIGMPSHARED_EXPORT operator! (const BigInt &val)
 
BigInt MINIGMPSHARED_EXPORT operator~ (BigInt val)
 
BigInt MINIGMPSHARED_EXPORT operator| (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator| (const BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator|= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator|= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator& (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator& (const BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator&= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator&= (BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT operator^ (BigInt left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT operator^ (const BigInt &left, intMpz right)
 
BigInt MINIGMPSHARED_EXPORT & operator^= (BigInt &left, const BigInt &right)
 
BigInt MINIGMPSHARED_EXPORT & operator^= (BigInt &left, intMpz right)
 

Detailed Description

The BigInt class - c++ minigmp wrapper.

Definition at line 20 of file bigint.h.

Constructor & Destructor Documentation

◆ BigInt() [1/5]

BigInt::BigInt ( )

Definition at line 15 of file bigint.cpp.

Here is the call graph for this function:

◆ BigInt() [2/5]

BigInt::BigInt ( const BigInt &  val,
int  bitCount = -1 
)

Definition at line 19 of file bigint.cpp.

Here is the call graph for this function:

◆ BigInt() [3/5]

BigInt::BigInt ( const std::string &  imput,
int  base = 10 
)

Definition at line 30 of file bigint.cpp.

Here is the call graph for this function:

◆ BigInt() [4/5]

BigInt::BigInt ( intMpz  val)

Definition at line 35 of file bigint.cpp.

Here is the call graph for this function:

◆ BigInt() [5/5]

BigInt::BigInt ( char  item,
unsigned int  size,
int  base = 2 
)

Definition at line 40 of file bigint.cpp.

◆ ~BigInt()

BigInt::~BigInt ( )

Definition at line 51 of file bigint.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ bigPow10()

BigInt BigInt::bigPow10 ( unsigned short  pow)
static

Returns 10 raised to the power of pow (10 ^ pow).

The result is a new BigInt with the decimal representation "1" followed by pow zeros.

Parameters
powThe exponent of 10, i.e. the number of zeros following the leading "1" in the decimal representation of the result.
Returns
A new BigInt equal to 10 ^ pow.

Definition at line 106 of file bigint.cpp.

Here is the call graph for this function:

◆ fromHex()

void BigInt::fromHex ( const std::string &  hex)

Definition at line 102 of file bigint.cpp.

Here is the call graph for this function:

◆ gcd()

BigInt & BigInt::gcd ( const BigInt &  a,
const BigInt &  b 
)

Definition at line 96 of file bigint.cpp.

Here is the call graph for this function:

◆ getString()

std::string BigInt::getString ( int  base = 10) const

Definition at line 44 of file bigint.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPrime()

bool BigInt::isPrime ( bool  absalut = false) const

Definition at line 92 of file bigint.cpp.

Here is the call graph for this function:

◆ log()

BigInt & BigInt::log ( int  base)

◆ longBits()

int BigInt::longBits ( ) const

Returns the current length of the number in bits.

The length of the number is the number of bits in the base 2 (binary) representation of the number.

Returns
The current length of the number in bits.

Definition at line 77 of file bigint.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ longBytes()

int BigInt::longBytes ( ) const

Definition at line 81 of file bigint.cpp.

Here is the call graph for this function:

◆ operator++() [1/2]

BigInt & BigInt::operator++ ( )

Definition at line 362 of file bigint.cpp.

◆ operator++() [2/2]

BigInt BigInt::operator++ ( int  )

Definition at line 373 of file bigint.cpp.

◆ operator--() [1/2]

BigInt & BigInt::operator-- ( )

Definition at line 357 of file bigint.cpp.

◆ operator--() [2/2]

BigInt BigInt::operator-- ( int  )

Definition at line 367 of file bigint.cpp.

◆ operator=() [1/3]

BigInt & BigInt::operator= ( const BigInt &  val)

Definition at line 115 of file bigint.cpp.

Here is the call graph for this function:

◆ operator=() [2/3]

BigInt & BigInt::operator= ( const std::string &  imput)

Definition at line 120 of file bigint.cpp.

Here is the call graph for this function:

◆ operator=() [3/3]

BigInt & BigInt::operator= ( intMpz  val)

Definition at line 125 of file bigint.cpp.

Here is the call graph for this function:

◆ pow()

BigInt & BigInt::pow ( uIntMpz  pow)

Definition at line 64 of file bigint.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ powm() [1/2]

BigInt BigInt::powm ( BigInt  val,
const BigInt &  pow,
const BigInt &  mod 
)
static

Definition at line 60 of file bigint.cpp.

Here is the call graph for this function:

◆ powm() [2/2]

BigInt & BigInt::powm ( const BigInt &  pow,
const BigInt &  mod 
)

Definition at line 55 of file bigint.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeBits()

int BigInt::sizeBits ( ) const

Returns the size of the number in bits.

The size of the number is the amount of memory allocated for the number in bits (sizeBytes() * 8).

Returns
The size of the number in bits.

Definition at line 69 of file bigint.cpp.

Here is the call graph for this function:

◆ sizeBytes()

int BigInt::sizeBytes ( ) const

Definition at line 73 of file bigint.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeType()

int BigInt::sizeType ( ) const

Definition at line 86 of file bigint.cpp.

◆ toNegative()

BigInt & BigInt::toNegative ( )

Definition at line 110 of file bigint.cpp.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!

bool MINIGMPSHARED_EXPORT operator! ( const BigInt &  val)
friend

Definition at line 493 of file bigint.cpp.

◆ operator!= [1/6]

bool MINIGMPSHARED_EXPORT operator!= ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 517 of file bigint.cpp.

◆ operator!= [2/6]

bool MINIGMPSHARED_EXPORT operator!= ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 525 of file bigint.cpp.

◆ operator!= [3/6]

bool MINIGMPSHARED_EXPORT operator!= ( const BigInt &  left,
const std::string &  str 
)
friend

Definition at line 525 of file bigint.cpp.

◆ operator!= [4/6]

bool MINIGMPSHARED_EXPORT operator!= ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 521 of file bigint.cpp.

◆ operator!= [5/6]

bool MINIGMPSHARED_EXPORT operator!= ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 533 of file bigint.cpp.

◆ operator!= [6/6]

bool MINIGMPSHARED_EXPORT operator!= ( intMpz  left,
const std::string &  right 
)
friend

◆ operator% [1/5]

BigInt MINIGMPSHARED_EXPORT operator% ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 320 of file bigint.cpp.

◆ operator% [2/5]

BigInt MINIGMPSHARED_EXPORT operator% ( BigInt  left,
const std::string &  right 
)
friend

Definition at line 334 of file bigint.cpp.

◆ operator% [3/5]

BigInt MINIGMPSHARED_EXPORT operator% ( BigInt  left,
intMpz  right 
)
friend

Definition at line 325 of file bigint.cpp.

◆ operator% [4/5]

BigInt MINIGMPSHARED_EXPORT operator% ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 338 of file bigint.cpp.

◆ operator% [5/5]

BigInt MINIGMPSHARED_EXPORT operator% ( intMpz  left,
BigInt  right 
)
friend

Definition at line 330 of file bigint.cpp.

◆ operator%= [1/3]

BigInt MINIGMPSHARED_EXPORT & operator%= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 342 of file bigint.cpp.

◆ operator%= [2/3]

BigInt MINIGMPSHARED_EXPORT & operator%= ( BigInt &  left,
const std::string &  right 
)
friend

Definition at line 352 of file bigint.cpp.

◆ operator%= [3/3]

BigInt MINIGMPSHARED_EXPORT & operator%= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 347 of file bigint.cpp.

◆ operator& [1/2]

BigInt MINIGMPSHARED_EXPORT operator& ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 453 of file bigint.cpp.

◆ operator& [2/2]

BigInt MINIGMPSHARED_EXPORT operator& ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 458 of file bigint.cpp.

◆ operator&= [1/2]

BigInt MINIGMPSHARED_EXPORT & operator&= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 463 of file bigint.cpp.

◆ operator&= [2/2]

BigInt MINIGMPSHARED_EXPORT & operator&= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 468 of file bigint.cpp.

◆ operator* [1/4]

BigInt MINIGMPSHARED_EXPORT operator* ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 275 of file bigint.cpp.

◆ operator* [2/4]

BigInt MINIGMPSHARED_EXPORT operator* ( BigInt  left,
const std::string &  right 
)
friend

Definition at line 297 of file bigint.cpp.

◆ operator* [3/4]

BigInt MINIGMPSHARED_EXPORT operator* ( BigInt  left,
intMpz  right 
)
friend

Definition at line 280 of file bigint.cpp.

◆ operator* [4/4]

BigInt MINIGMPSHARED_EXPORT operator* ( intMpz  left,
BigInt  right 
)
friend

Definition at line 289 of file bigint.cpp.

◆ operator*= [1/3]

BigInt MINIGMPSHARED_EXPORT & operator*= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 301 of file bigint.cpp.

◆ operator*= [2/3]

BigInt MINIGMPSHARED_EXPORT & operator*= ( BigInt &  left,
const std::string &  right 
)
friend

Definition at line 306 of file bigint.cpp.

◆ operator*= [3/3]

BigInt MINIGMPSHARED_EXPORT & operator*= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 310 of file bigint.cpp.

◆ operator+ [1/5]

BigInt MINIGMPSHARED_EXPORT operator+ ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 145 of file bigint.cpp.

◆ operator+ [2/5]

BigInt MINIGMPSHARED_EXPORT operator+ ( BigInt  left,
const std::string &  right 
)
friend

Definition at line 150 of file bigint.cpp.

◆ operator+ [3/5]

BigInt MINIGMPSHARED_EXPORT operator+ ( BigInt  left,
intMpz  right 
)
friend

Definition at line 132 of file bigint.cpp.

◆ operator+ [4/5]

BigInt MINIGMPSHARED_EXPORT operator+ ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 154 of file bigint.cpp.

◆ operator+ [5/5]

BigInt MINIGMPSHARED_EXPORT operator+ ( intMpz  left,
BigInt  right 
)
friend

Definition at line 141 of file bigint.cpp.

◆ operator+= [1/3]

BigInt MINIGMPSHARED_EXPORT & operator+= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 166 of file bigint.cpp.

◆ operator+= [2/3]

BigInt MINIGMPSHARED_EXPORT & operator+= ( BigInt &  left,
const std::string &  right 
)
friend

Definition at line 171 of file bigint.cpp.

◆ operator+= [3/3]

BigInt MINIGMPSHARED_EXPORT & operator+= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 158 of file bigint.cpp.

◆ operator- [1/6]

BigInt MINIGMPSHARED_EXPORT operator- ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 177 of file bigint.cpp.

◆ operator- [2/6]

BigInt MINIGMPSHARED_EXPORT operator- ( BigInt  left,
const std::string &  right 
)
friend

Definition at line 203 of file bigint.cpp.

◆ operator- [3/6]

BigInt MINIGMPSHARED_EXPORT operator- ( BigInt  left,
intMpz  right 
)
friend

Definition at line 182 of file bigint.cpp.

◆ operator- [4/6]

BigInt MINIGMPSHARED_EXPORT operator- ( BigInt  val)
friend

Definition at line 198 of file bigint.cpp.

◆ operator- [5/6]

BigInt MINIGMPSHARED_EXPORT operator- ( const std::string &  right,
const BigInt &  left 
)
friend

Definition at line 207 of file bigint.cpp.

◆ operator- [6/6]

BigInt MINIGMPSHARED_EXPORT operator- ( intMpz  right,
BigInt  left 
)
friend

Definition at line 190 of file bigint.cpp.

◆ operator-= [1/3]

BigInt MINIGMPSHARED_EXPORT & operator-= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 211 of file bigint.cpp.

◆ operator-= [2/3]

BigInt MINIGMPSHARED_EXPORT & operator-= ( BigInt &  left,
const std::string &  right 
)
friend

Definition at line 216 of file bigint.cpp.

◆ operator-= [3/3]

BigInt MINIGMPSHARED_EXPORT & operator-= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 220 of file bigint.cpp.

◆ operator/ [1/5]

BigInt MINIGMPSHARED_EXPORT operator/ ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 230 of file bigint.cpp.

◆ operator/ [2/5]

BigInt MINIGMPSHARED_EXPORT operator/ ( BigInt  left,
const std::string &  right 
)
friend

Definition at line 244 of file bigint.cpp.

◆ operator/ [3/5]

BigInt MINIGMPSHARED_EXPORT operator/ ( BigInt  left,
intMpz  right 
)
friend

Definition at line 235 of file bigint.cpp.

◆ operator/ [4/5]

BigInt MINIGMPSHARED_EXPORT operator/ ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 252 of file bigint.cpp.

◆ operator/ [5/5]

BigInt MINIGMPSHARED_EXPORT operator/ ( intMpz  left,
BigInt  right 
)
friend

Definition at line 248 of file bigint.cpp.

◆ operator/= [1/3]

BigInt MINIGMPSHARED_EXPORT & operator/= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 256 of file bigint.cpp.

◆ operator/= [2/3]

BigInt MINIGMPSHARED_EXPORT & operator/= ( BigInt &  left,
const std::string &  right 
)
friend

Definition at line 261 of file bigint.cpp.

◆ operator/= [3/3]

BigInt MINIGMPSHARED_EXPORT & operator/= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 265 of file bigint.cpp.

◆ operator< [1/6]

bool MINIGMPSHARED_EXPORT operator< ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 537 of file bigint.cpp.

◆ operator< [2/6]

bool MINIGMPSHARED_EXPORT operator< ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 545 of file bigint.cpp.

◆ operator< [3/6]

bool MINIGMPSHARED_EXPORT operator< ( const BigInt &  left,
const std::string &  str 
)
friend

Definition at line 545 of file bigint.cpp.

◆ operator< [4/6]

bool MINIGMPSHARED_EXPORT operator< ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 541 of file bigint.cpp.

◆ operator< [5/6]

bool MINIGMPSHARED_EXPORT operator< ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 553 of file bigint.cpp.

◆ operator< [6/6]

bool MINIGMPSHARED_EXPORT operator< ( intMpz  left,
const std::string &  right 
)
friend

◆ operator<<

BigInt MINIGMPSHARED_EXPORT operator<< ( BigInt  left,
int  right 
)
friend

Definition at line 393 of file bigint.cpp.

◆ operator<<=

BigInt MINIGMPSHARED_EXPORT & operator<<= ( BigInt &  left,
int  right 
)
friend

Definition at line 417 of file bigint.cpp.

◆ operator<= [1/6]

bool MINIGMPSHARED_EXPORT operator<= ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 577 of file bigint.cpp.

◆ operator<= [2/6]

bool MINIGMPSHARED_EXPORT operator<= ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 585 of file bigint.cpp.

◆ operator<= [3/6]

bool MINIGMPSHARED_EXPORT operator<= ( const BigInt &  left,
const std::string &  str 
)
friend

Definition at line 585 of file bigint.cpp.

◆ operator<= [4/6]

bool MINIGMPSHARED_EXPORT operator<= ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 581 of file bigint.cpp.

◆ operator<= [5/6]

bool MINIGMPSHARED_EXPORT operator<= ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 593 of file bigint.cpp.

◆ operator<= [6/6]

bool MINIGMPSHARED_EXPORT operator<= ( intMpz  left,
const std::string &  right 
)
friend

◆ operator== [1/6]

bool MINIGMPSHARED_EXPORT operator== ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 497 of file bigint.cpp.

◆ operator== [2/6]

bool MINIGMPSHARED_EXPORT operator== ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 505 of file bigint.cpp.

◆ operator== [3/6]

bool MINIGMPSHARED_EXPORT operator== ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 505 of file bigint.cpp.

◆ operator== [4/6]

bool MINIGMPSHARED_EXPORT operator== ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 501 of file bigint.cpp.

◆ operator== [5/6]

bool MINIGMPSHARED_EXPORT operator== ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 513 of file bigint.cpp.

◆ operator== [6/6]

bool MINIGMPSHARED_EXPORT operator== ( intMpz  left,
const std::string &  right 
)
friend

◆ operator> [1/6]

bool MINIGMPSHARED_EXPORT operator> ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 557 of file bigint.cpp.

◆ operator> [2/6]

bool MINIGMPSHARED_EXPORT operator> ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 565 of file bigint.cpp.

◆ operator> [3/6]

bool MINIGMPSHARED_EXPORT operator> ( const BigInt &  left,
const std::string &  str 
)
friend

Definition at line 565 of file bigint.cpp.

◆ operator> [4/6]

bool MINIGMPSHARED_EXPORT operator> ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 561 of file bigint.cpp.

◆ operator> [5/6]

bool MINIGMPSHARED_EXPORT operator> ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 573 of file bigint.cpp.

◆ operator> [6/6]

bool MINIGMPSHARED_EXPORT operator> ( intMpz  left,
const std::string &  right 
)
friend

◆ operator>= [1/6]

bool MINIGMPSHARED_EXPORT operator>= ( const BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 597 of file bigint.cpp.

◆ operator>= [2/6]

bool MINIGMPSHARED_EXPORT operator>= ( const BigInt &  left,
const std::string &  right 
)
friend

Definition at line 605 of file bigint.cpp.

◆ operator>= [3/6]

bool MINIGMPSHARED_EXPORT operator>= ( const BigInt &  left,
const std::string &  str 
)
friend

Definition at line 605 of file bigint.cpp.

◆ operator>= [4/6]

bool MINIGMPSHARED_EXPORT operator>= ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 601 of file bigint.cpp.

◆ operator>= [5/6]

bool MINIGMPSHARED_EXPORT operator>= ( const std::string &  left,
const BigInt &  right 
)
friend

Definition at line 613 of file bigint.cpp.

◆ operator>= [6/6]

bool MINIGMPSHARED_EXPORT operator>= ( intMpz  left,
const std::string &  right 
)
friend

◆ operator>>

BigInt MINIGMPSHARED_EXPORT operator>> ( BigInt  left,
int  right 
)
friend

Definition at line 381 of file bigint.cpp.

◆ operator>>=

BigInt MINIGMPSHARED_EXPORT & operator>>= ( BigInt &  left,
int  right 
)
friend

Definition at line 405 of file bigint.cpp.

◆ operator^ [1/2]

BigInt MINIGMPSHARED_EXPORT operator^ ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 472 of file bigint.cpp.

◆ operator^ [2/2]

BigInt MINIGMPSHARED_EXPORT operator^ ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 477 of file bigint.cpp.

◆ operator^= [1/2]

BigInt MINIGMPSHARED_EXPORT & operator^= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 481 of file bigint.cpp.

◆ operator^= [2/2]

BigInt MINIGMPSHARED_EXPORT & operator^= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 486 of file bigint.cpp.

◆ operator| [1/2]

BigInt MINIGMPSHARED_EXPORT operator| ( BigInt  left,
const BigInt &  right 
)
friend

Definition at line 435 of file bigint.cpp.

◆ operator| [2/2]

BigInt MINIGMPSHARED_EXPORT operator| ( const BigInt &  left,
intMpz  right 
)
friend

Definition at line 440 of file bigint.cpp.

◆ operator|= [1/2]

BigInt MINIGMPSHARED_EXPORT & operator|= ( BigInt &  left,
const BigInt &  right 
)
friend

Definition at line 444 of file bigint.cpp.

◆ operator|= [2/2]

BigInt MINIGMPSHARED_EXPORT & operator|= ( BigInt &  left,
intMpz  right 
)
friend

Definition at line 449 of file bigint.cpp.

◆ operator~

BigInt MINIGMPSHARED_EXPORT operator~ ( BigInt  val)
friend

Definition at line 430 of file bigint.cpp.


The documentation for this class was generated from the following files: