SparseLibrary  Version 1.6.0
Public Member Functions | Public Attributes | List of all members
BigInt Struct Reference

A 128-bit integer, with overloaded comparison operators. More...

#include <BigInt.hpp>

Public Member Functions

 BigInt ()
 Default constructor (sets fields to zero). More...
 
 BigInt (unsigned long int a, unsigned long int b)
 Direct constructor. More...
 
void operator= (const BigInt &other)
 Assignment operator. More...
 
 operator unsigned long int ()
 
 operator unsigned int ()
 
 operator unsigned short int ()
 
 operator unsigned char ()
 

Public Attributes

unsigned long int high
 Most significant bits.
 
unsigned long int low
 Least significant bits. More...
 

Detailed Description

A 128-bit integer, with overloaded comparison operators.

Constructor & Destructor Documentation

BigInt::BigInt ( )
inline

Default constructor (sets fields to zero).

BigInt::BigInt ( unsigned long int  a,
unsigned long int  b 
)
inline

Direct constructor.

Parameters
aMost significant bits.
bLeast significant bits.

Member Function Documentation

BigInt::operator unsigned char ( )
inline
Returns
unsigned char cast of this integer.

References high, and low.

BigInt::operator unsigned int ( )
inline
Returns
unsinged int cast of this integer.

References high, and low.

BigInt::operator unsigned long int ( )
inline
Returns
unsinged long int cast of this integer.

References high, and low.

BigInt::operator unsigned short int ( )
inline
Returns
unsigned short int cast of this integer.

References high, and low.

void BigInt::operator= ( const BigInt other)
inline

Assignment operator.

Parameters
otherthe integer this integer should equal.

References high, and low.

Member Data Documentation

unsigned long int BigInt::low

The documentation for this struct was generated from the following file: