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

#include <int128s.h>

Public Member Functions

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

Friends

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

bool ZenLib::int128::operator! ( ) const
throw (
)
int128& ZenLib::int128::operator%= ( const int128 b)
throw (
)
inline

References div().

int128& ZenLib::int128::operator&= ( const int128 b)
throw (
)
int128& ZenLib::int128::operator*= ( const int128 b)
throw (
)
const int128& ZenLib::int128::operator+ ( ) const
throw (
)
inline
int128& ZenLib::int128::operator++ ( )
int128 ZenLib::int128::operator++ ( int  )
int128& ZenLib::int128::operator+= ( const int128 b)
throw (
)
int128 ZenLib::int128::operator- ( ) const
throw (
)
int128& ZenLib::int128::operator-- ( )
int128 ZenLib::int128::operator-- ( int  )
int128& ZenLib::int128::operator-= ( const int128 b)
throw (
)
inline
int128& ZenLib::int128::operator/= ( const int128 b)
throw (
)
inline

References div().

int128& ZenLib::int128::operator<<= ( unsigned int  n)
throw (
)
int128& ZenLib::int128::operator>>= ( unsigned int  n)
throw (
)
int128& ZenLib::int128::operator^= ( const int128 b)
throw (
)
int128& ZenLib::int128::operator|= ( const int128 b)
throw (
)
int128 ZenLib::int128::operator~ ( ) const
throw (
)
double ZenLib::int128::toDouble ( ) const
throw (
)
float ZenLib::int128::toFloat ( ) const
throw (
)
int ZenLib::int128::toInt ( ) const
throw (
)
inline
int64s ZenLib::int128::toInt64 ( ) const
throw (
)
inline
long double ZenLib::int128::toLongDouble ( ) const
throw (
)
const char* ZenLib::int128::toString ( unsigned int  radix = 10) const
throw (
)

Friends And Related Function Documentation

bool operator&& ( const int128 ,
const int128  
)
throw (
)
friend
bool operator< ( const int128 ,
const int128  
)
throw (
)
friend
bool operator== ( const int128 ,
const int128  
)
throw (
)
friend
bool operator|| ( const int128 ,
const int128  
)
throw (
)
friend

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