ZenLib
Public Member Functions | Public Attributes | Friends | List of all members
ZenLib::uint128 Class Reference

#include <int128u.h>

Public Member Functions

 uint128 () throw ()
 
 uint128 (const uint128 &a) throw ()
 
 uint128 (const int &a) throw ()
 
 uint128 (const unsigned int &a) throw ()
 
 uint128 (const int64u &a) throw ()
 
 uint128 (const float a) throw ()
 
 uint128 (const double &a) throw ()
 
 uint128 (const long double &a) throw ()
 
 uint128 (const char *sz) throw ()
 
bool operator! () const throw ()
 
uint128 operator- () const throw ()
 
uint128 operator~ () const throw ()
 
uint128operator++ ()
 
uint128operator-- ()
 
uint128 operator++ (int)
 
uint128 operator-- (int)
 
uint128operator+= (const uint128 &b) throw ()
 
uint128operator*= (const uint128 &b) throw ()
 
uint128operator>>= (unsigned int n) throw ()
 
uint128operator<<= (unsigned int n) throw ()
 
uint128operator|= (const uint128 &b) throw ()
 
uint128operator&= (const uint128 &b) throw ()
 
uint128operator^= (const uint128 &b) throw ()
 
const uint128operator+ () const throw ()
 
uint128operator-= (const uint128 &b) throw ()
 
uint128operator/= (const uint128 &b) throw ()
 
uint128operator%= (const uint128 &b) throw ()
 
unsigned int toUint () const throw ()
 
int64u toUint64 () const throw ()
 
const char * toString (unsigned int radix=10) const throw ()
 
float toFloat () const throw ()
 
double toDouble () const throw ()
 
long double toLongDouble () const throw ()
 
uint128 div (const uint128 &, uint128 &) const throw ()
 
bool bit (unsigned int n) const throw ()
 
void bit (unsigned int n, bool val) throw ()
 

Public Attributes

int64u lo
 
int64u hi
 

Friends

bool operator< (const uint128 &, const uint128 &) throw ()
 
bool operator== (const uint128 &, const uint128 &) throw ()
 
bool operator|| (const uint128 &, const uint128 &) throw ()
 
bool operator&& (const uint128 &, const uint128 &) throw ()
 

Constructor & Destructor Documentation

ZenLib::uint128::uint128 ( )
throw (
)
inline
ZenLib::uint128::uint128 ( const uint128 a)
throw (
)
inline
ZenLib::uint128::uint128 ( const int &  a)
throw (
)
inline
ZenLib::uint128::uint128 ( const unsigned int &  a)
throw (
)
inline
ZenLib::uint128::uint128 ( const int64u &  a)
throw (
)
inline
ZenLib::uint128::uint128 ( const float  a)
throw (
)
ZenLib::uint128::uint128 ( const double &  a)
throw (
)
ZenLib::uint128::uint128 ( const long double &  a)
throw (
)
ZenLib::uint128::uint128 ( const char *  sz)
throw (
)

Member Function Documentation

bool ZenLib::uint128::bit ( unsigned int  n) const
throw (
)

Referenced by toUint64().

void ZenLib::uint128::bit ( unsigned int  n,
bool  val 
)
throw (
)
uint128 ZenLib::uint128::div ( const uint128 ,
uint128  
) const
throw (
)

Referenced by operator%=(), operator/=(), and toUint64().

bool ZenLib::uint128::operator! ( ) const
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator%= ( const uint128 b)
throw (
)
inline

References div().

uint128& ZenLib::uint128::operator&= ( const uint128 b)
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator*= ( const uint128 b)
throw (
)

Referenced by uint128().

const uint128& ZenLib::uint128::operator+ ( ) const
throw (
)
inline
uint128& ZenLib::uint128::operator++ ( )

Referenced by uint128().

uint128 ZenLib::uint128::operator++ ( int  )
uint128& ZenLib::uint128::operator+= ( const uint128 b)
throw (
)

Referenced by uint128().

uint128 ZenLib::uint128::operator- ( ) const
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator-- ( )

Referenced by uint128().

uint128 ZenLib::uint128::operator-- ( int  )
uint128& ZenLib::uint128::operator-= ( const uint128 b)
throw (
)
inline
uint128& ZenLib::uint128::operator/= ( const uint128 b)
throw (
)
inline

References div().

uint128& ZenLib::uint128::operator<<= ( unsigned int  n)
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator>>= ( unsigned int  n)
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator^= ( const uint128 b)
throw (
)

Referenced by uint128().

uint128& ZenLib::uint128::operator|= ( const uint128 b)
throw (
)

Referenced by uint128().

uint128 ZenLib::uint128::operator~ ( ) const
throw (
)

Referenced by uint128().

double ZenLib::uint128::toDouble ( ) const
throw (
)

Referenced by toUint64().

float ZenLib::uint128::toFloat ( ) const
throw (
)

Referenced by toUint64().

long double ZenLib::uint128::toLongDouble ( ) const
throw (
)

Referenced by toUint64().

const char* ZenLib::uint128::toString ( unsigned int  radix = 10) const
throw (
)

Referenced by toUint64().

unsigned int ZenLib::uint128::toUint ( ) const
throw (
)
inline

References lo.

int64u ZenLib::uint128::toUint64 ( ) const
throw (
)
inline

Friends And Related Function Documentation

bool operator&& ( const uint128 ,
const uint128  
)
throw (
)
friend

Referenced by toUint64().

bool operator< ( const uint128 ,
const uint128  
)
throw (
)
friend

Referenced by toUint64().

bool operator== ( const uint128 ,
const uint128  
)
throw (
)
friend

Referenced by toUint64().

bool operator|| ( const uint128 ,
const uint128  
)
throw (
)
friend

Referenced by toUint64().

Member Data Documentation

int64u ZenLib::uint128::hi

Referenced by uint128().

int64u ZenLib::uint128::lo

Referenced by toUint(), toUint64(), and uint128().


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