ZenLib
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 &a, const uint128 &b) throw ()
 
bool operator== (const uint128 &a, const uint128 &b) throw ()
 
bool operator|| (const uint128 &a, const uint128 &b) throw ()
 
bool operator&& (const uint128 &a, const uint128 &b) throw ()
 

Constructor & Destructor Documentation

◆ uint128() [1/9]

◆ uint128() [2/9]

ZenLib::uint128::uint128 ( const uint128 & a)
throw ( )
inline

References uint128().

◆ uint128() [3/9]

ZenLib::uint128::uint128 ( const int & a)
throw ( )
inline

◆ uint128() [4/9]

ZenLib::uint128::uint128 ( const unsigned int & a)
throw ( )
inline

◆ uint128() [5/9]

ZenLib::uint128::uint128 ( const int64u & a)
throw ( )
inline

◆ uint128() [6/9]

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

◆ uint128() [7/9]

ZenLib::uint128::uint128 ( const double & a)
throw ( )

◆ uint128() [8/9]

ZenLib::uint128::uint128 ( const long double & a)
throw ( )

◆ uint128() [9/9]

ZenLib::uint128::uint128 ( const char * sz)
throw ( )

Member Function Documentation

◆ bit() [1/2]

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

References bit().

Referenced by bit(), and bit().

◆ bit() [2/2]

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

References bit().

◆ div()

uint128 ZenLib::uint128::div ( const uint128 & ,
uint128 &  ) const
throw ( )

References div(), and uint128().

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

◆ operator!()

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

◆ operator%=()

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

References div(), and uint128().

◆ operator&=()

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

References uint128().

◆ operator*=()

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

References uint128().

◆ operator+()

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

References uint128().

◆ operator++() [1/2]

uint128 & ZenLib::uint128::operator++ ( )

References uint128().

◆ operator++() [2/2]

uint128 ZenLib::uint128::operator++ ( int )

References uint128().

◆ operator+=()

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

References uint128().

◆ operator-()

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

References uint128().

◆ operator--() [1/2]

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

References uint128().

◆ operator--() [2/2]

uint128 ZenLib::uint128::operator-- ( int )

References uint128().

◆ operator-=()

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

References uint128().

◆ operator/=()

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

References div(), and uint128().

◆ operator<<=()

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

References uint128().

◆ operator>>=()

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

References uint128().

◆ operator^=()

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

References uint128().

◆ operator|=()

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

References uint128().

◆ operator~()

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

References uint128().

◆ toDouble()

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

References toDouble().

Referenced by toDouble().

◆ toFloat()

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

References toFloat().

Referenced by toFloat().

◆ toLongDouble()

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

References toLongDouble().

Referenced by toLongDouble().

◆ toString()

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

◆ toUint()

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

◆ toUint64()

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

Friends And Related Symbol Documentation

◆ operator&&

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

References uint128().

◆ operator<

bool operator< ( const uint128 & a,
const uint128 & b )
throw ( )
friend

References uint128().

◆ operator==

bool operator== ( const uint128 & a,
const uint128 & b )
throw ( )
friend

References uint128().

◆ operator||

bool operator|| ( const uint128 & a,
const uint128 & b )
throw ( )
friend

References uint128().

Member Data Documentation

◆ hi

int64u ZenLib::uint128::hi

Referenced by uint128().

◆ lo

int64u ZenLib::uint128::lo

Referenced by uint128().


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