#include <bigarith.h>
Public Methods | |
big_int () | |
big_int (char *str) | |
big_int (const big_int &b) | |
big_int (int b) | |
~big_int () | |
big_int & | operator= (const big_int &b) |
size_t | length () |
Friends | |
ostream & | operator<< (ostream &s, const big_int &x) |
istream & | operator>> (istream &s, big_int &x) |
int | cmp (const big_int &a, const big_int &b) |
int | operator== (const big_int &a, const big_int &b) |
int | operator!= (const big_int &a, const big_int &b) |
int | operator> (const big_int &a, const big_int &b) |
int | operator>= (const big_int &a, const big_int &b) |
int | operator< (const big_int &a, const big_int &b) |
int | operator<= (const big_int &a, const big_int &b) |
big_int | operator+ (const big_int &a) |
big_int | operator- (const big_int &a) |
big_int | operator+ (const big_int &b, const big_int &c) |
big_int | operator- (const big_int &b, const big_int &c) |
big_int | operator * (const big_int &b, const big_int &c) |
big_int | operator/ (const big_int &b, const big_int &c) |
big_int | operator% (const big_int &b, const big_int &c) |
big_int & | operator+= (big_int &b, const big_int &c) |
big_int & | operator-= (big_int &b, const big_int &c) |
big_int & | operator *= (big_int &b, const big_int &c) |
big_int & | operator/= (big_int &b, const big_int &c) |
big_int & | operator%= (big_int &b, const big_int &c) |
void | divide (big_int &a, const big_int &b, const big_int &c, big_int &res) |
big_int | random_number (size_t length) |
An instance of the data type big_int is an integer number of arbitrary length.
testbg.cpp, testbig.cpp, and testbio.cpp.
Definition at line 55 of file bigarith.h.
|
Constructor.
|
|
Converts str to a big_int.
|
|
Constructor: makes a copy of a number.
|
|
Constructor: converts b to a big number.
|
|
Destructor.
|
|
Returns the number of bits in number.
|
|
Assignment.
|
|
Returns - 0 if a = b, - -1 if a < b, - 1 if a > b.
|
|
Returns a quotient a = b / c; and remainder r = b % c.
|
|
Multiplication.
|
|
Combined assignment-multiplication operator.
|
|
Test for inequality.
|
|
Remainder.
|
|
Combined assignment-remainder operator.
|
|
Binary plus.
|
|
Unary plus.
|
|
Combined assignment-addition operator.
|
|
Binary minus.
|
|
Unary minus.
|
|
Combined assignment-subtraction operator.
|
|
Divizion.
|
|
Combined assignment-division operator.
|
|
Test for less.
|
|
Reads a number.
|
|
Test for less than or equal to.
|
|
Test for equality.
|
|
Test for greater.
|
|
Test for greater than or equal to.
|
|
Writes a number.
|
|
Returns psudo-random number with length `digits'.
|