| c_big_int | (); |
|   |   | Constructs an empty c_big_int.
|
|   |   | |
| c_big_int | ( const c_big_int & ar_big_int ); |
|   |   | Constructs a c_big_int from a reference to another c_big_int.
|
|   |   | |
| c_big_int | ( const char * ap_string ); |
|   |   | Constructs a c_big_int from a char string containing a printable representation of the
integer (e.g. "123").
|
|   |   | |
| c_big_int | ( const std::string &ar_string ); |
|   |   | Constructs a c_big_int from a std::string object containing a printable representation of the
integer (e.g. "123").
|
|   |   | |
| c_big_int | ( long a_long ); |
|   |   | Constructs a c_big_int from a long value.
|
|   |   | |
| c_big_int & | operator = | ( const c_big_int & ar_big_int ); |
|   |   | Assign the value in the c_big_int object references by ar_big_int to the current object.
If an exception is thrown the orignal value in this object will be preserved.
|
|   |   | |
| c_big_int & | operator = | ( const char * ap_string ); |
|   |   | Assign the value described in the char string ap_string to the current object.
The representation of the integer in the input string is the form that would be used
to print the integer in text form (e.g. "123").
If an exception is thrown the orignal value in this object will be preserved.
|
|   |   | |
| c_big_int & | operator = | ( const std::string &ar_string ); |
|   |   | Assign the value in the std::string object referenced by ar_string to the current object.
The representation of the integer in the input string is the form that would be used
to print the integer in text form (e.g. "123").
If an exception is thrown the orignal value in this object will be preserved.
|
|   |   | |
| c_big_int & | operator = | ( long a_long ); |
|   |   | Assign the value in the c_big_int object references by ar_big_int to the current object.
If an exception is thrown the orignal value in this object will be preserved.
|
|   |   | |
| void | swap | ( c_big_int & ar_big_int ); |
|   |   | Swap the contents of the current c_big_int with another. This is a non-throwing operation.
|
|   |   | |
| std::string | get_as_string | () const; |
|   |   | |
| long | get | ( bool *ap_is_overflowed = NULL ) const; |
|   |   | Return the value contained in the object as a long. If the optional parameter
ap_is_overflowed is set, then if the value stored in the object is too
large to store in a long, the bool value pointed to by ap_is_overflowed will be set to
true, otherwise it will be set to false.
N.B.:This function does not allow conversion of the value to the most negative value of a
long.
|
|   |   | |
| friend bool | operator == | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically equal to the integer defined by
ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator != | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically different to that defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator > | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than the integer defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator >= | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator < | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator <= | ( const c_big_int &ar_lhs, const char *ap_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator == | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically equal to the integer defined by
ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator != | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically different to that defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator > | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than the integer defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator >= | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator < | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator <= | ( const c_big_int &ar_lhs, const std::string &ar_value ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator == | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically equal to the integer defined by
ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator != | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically different to that defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator > | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than the integer defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator >= | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator < | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator <= | ( const std::string &ar_value, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator == | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically equal to the integer defined by
ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator != | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically different to that defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator > | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than the integer defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator >= | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator < | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator <= | ( const char *ap_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator == | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically equal to the integer defined by
ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator != | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically different to that defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator > | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than the integer defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator >= | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically greater than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator < | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend bool | operator <= | ( const c_big_int &ar_lhs, const c_big_int &ar_rhs ); |
|   |   | Tests whether the integer defined by ar_lhs is numerically less than or equal to the integer
defined by ar_rhs.
A number of comparison operators are defined taking different types in-order
to prevent the need for the construction of tempory c_big_int objects.
|
|   |   | |
| friend std::ostream & | operator << | ( std::ostream &ar_os, const c_big_int &ar_out ); |
|   |   | Outputs the c_big_int object defined by ar_out to the stream defined by
ar_os, and returns a reference to ar_os.
|
|   |   | |