Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Signed integers
[Natural numbers]


Modules

 Floating point numbers

Classes

class  mp::mpi_
 Second level core class that provides signed integers to the MP++ library. More...
class  mp::mpi
 User class that provides an interface to use signed integers with the MP++ library. More...

Comparison overloads

bool mp::operator== (const mpi &x, int_type y)
bool mp::operator!= (const mpi &x, int_type y)
bool mp::operator< (const mpi &x, int_type y)
bool mp::operator<= (const mpi &x, int_type y)
bool mp::operator> (const mpi &x, int_type y)
bool mp::operator>= (const mpi &x, int_type y)
bool mp::operator== (int_type x, const mpi &y)
bool mp::operator!= (int_type x, const mpi &y)
bool mp::operator< (int_type x, const mpi &y)
bool mp::operator<= (int_type x, const mpi &y)
bool mp::operator> (int_type x, const mpi &y)
bool mp::operator>= (int_type x, const mpi &y)
bool mp::operator== (const mpi &x, const mpi &y)
bool mp::operator!= (const mpi &x, const mpi &y)
bool mp::operator< (const mpi &x, const mpi &y)
bool mp::operator<= (const mpi &x, const mpi &y)
bool mp::operator> (const mpi &x, const mpi &y)
bool mp::operator>= (const mpi &x, const mpi &y)

Bit shifting

mpi mp::operator<< (const mpi &x, mpi::size_type y)
mpi mp::operator>> (const mpi &x, mpi::size_type y)

Bitwise overloads

mpi mp::operator & (const mpi &x, const mpi &y)
mpi mp::operator| (const mpi &x, const mpi &y)
mpi mp::operator^ (const mpi &x, const mpi &y)

Unary positive & negative

mpi mp::operator+ (const mpi &x)
mpi mp::operator- (const mpi &x)

Functions

istream & mp::operator>> (istream &is, mpi &n)
 Stream input.
ostream & mp::operator<< (ostream &os, const mpi &n)
 Stream output.
mpi mp::operator+ (const mpi &x, int_type y)
mpi mp::operator+ (int_type x, const mpi &y)
mpi mp::operator+ (const mpi &x, const mpi &y)
mpi mp::operator- (const mpi &x, int_type y)
mpi mp::operator- (int_type x, const mpi &y)
mpi mp::operator- (const mpi &x, const mpi &y)
mpi mp::operator * (const mpi &x, int_type y)
mpi mp::operator * (int_type x, const mpi &y)
mpi mp::operator * (const mpi &x, const mpi &y)
mpi mp::operator/ (const mpi &x, int_type y)
mpi mp::operator/ (int_type x, const mpi &y)
mpi mp::operator/ (const mpi &x, const mpi &y)
mpi mp::operator% (const mpi &x, int_type y)
mpi mp::operator% (int_type x, const mpi &y)
mpi mp::operator% (const mpi &x, const mpi &y)

Function Documentation

mpi mp::operator & (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x First operand
y Second operand
Returns:
Result of the operation

mpi mp::operator * (  const mpi &  x,
const mpi &  y
) 
 

mpi operator * (  int_type  x,
const mpi &  y
) 
 

mpi operator * (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
Result of the multiplication

bool mp::operator!= (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator!= (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator!= (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

mpi mp::operator% (  const mpi &  x,
const mpi &  y
) 
 

mpi operator% (  int_type  x,
const mpi &  y
) 
 

mpi operator% (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
Remainder of the division

mpi mp::operator+ (  const mpi &  x,
const mpi &  y
) 
 

mpi operator+ (  int_type  x,
const mpi &  y
) 
 

mpi operator+ (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
Result of the addition

mpi mp::operator+ (  const mpi &  x  ) 
 

mpi mp::operator- (  const mpi &  x,
const mpi &  y
) 
 

mpi operator- (  int_type  x,
const mpi &  y
) 
 

mpi operator- (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
Result of the subtraction

mpi mp::operator- (  const mpi &  x  ) 
 

mpi mp::operator/ (  const mpi &  x,
const mpi &  y
) 
 

mpi operator/ (  int_type  x,
const mpi &  y
) 
 

mpi operator/ (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
Quotient of the division

bool mp::operator< (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator< (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator< (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

mpi mp::operator<< (  const mpi &  x,
mpi::size_type  y
) 
 

Parameters:
x Number to shift
y Number of bits to shift
Returns:
Result of the shifting

ostream& operator<< (  std::ostream &  os,
const mpi &  n
) 
 

Stream output.

Converts number to a string and pushes it onto the stream.

Parameters:
os Output stream
n Input number
Returns:
Reference to the stream to allow chaining

bool mp::operator<= (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator<= (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator<= (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator== (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator== (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator== (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator> (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator> (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator> (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator>= (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator>= (  int_type  x,
const mpi &  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

bool mp::operator>= (  const mpi &  x,
int_type  y
) 
 

Parameters:
x Left operand
y Right operand
Returns:
The result of the comparison

mpi mp::operator>> (  const mpi &  x,
mpi::size_type  y
) 
 

Parameters:
x Number to shift
y Number of bits to shift
Returns:
Result of the shifting

istream& operator>> (  std::istream &  is,
mpi &  n
) 
 

Stream input.

Converts string from stream to MPI.

Parameters:
is Input stream
n Output number
Returns:
Reference to the stream to allow chaining

mpi mp::operator^ (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x First operand
y Second operand
Returns:
Result of the operation

mpi mp::operator| (  const mpi &  x,
const mpi &  y
) 
 

Parameters:
x First operand
y Second operand
Returns:
Result of the operation


Generated on Fri Feb 4 16:17:55 2005 for LibMP++ by  doxygen 1.4.1