LIPH's C++ Codes
liph::big_integer Class Reference

#include <big_integer.h>

Public Types

using byte = unsigned char
 

Public Member Functions

 big_integer (long long n=0)
 
 big_integer (const std::string &str)
 
 big_integer (const big_integer &other)
 
big_integeroperator= (const big_integer &other)
 
 big_integer (big_integer &&other)
 
big_integeroperator= (big_integer &&other)
 
int sign () const
 
bool zero () const
 
std::string string () const
 
bool operator== (const big_integer &other) const
 
bool operator!= (const big_integer &other) const
 
bool operator< (const big_integer &other) const
 
bool operator<= (const big_integer &other) const
 
bool operator> (const big_integer &other) const
 
bool operator>= (const big_integer &other) const
 
big_integer operator+ (const big_integer &other) const
 
big_integer operator- (const big_integer &other) const
 
big_integer operator* (const big_integer &other) const
 
big_integer operator/ (const big_integer &other) const
 
big_integer operator- () const
 
big_integer abs () const
 

Static Public Member Functions

static big_integer rand (int max_size=128)
 

Member Typedef Documentation

◆ byte

using liph::big_integer::byte = unsigned char

Constructor & Destructor Documentation

◆ big_integer() [1/4]

liph::big_integer::big_integer ( long long  n = 0)

◆ big_integer() [2/4]

liph::big_integer::big_integer ( const std::string &  str)
explicit

◆ big_integer() [3/4]

liph::big_integer::big_integer ( const big_integer other)

◆ big_integer() [4/4]

liph::big_integer::big_integer ( big_integer &&  other)

Member Function Documentation

◆ abs()

big_integer liph::big_integer::abs ( ) const

◆ operator!=()

bool liph::big_integer::operator!= ( const big_integer other) const

◆ operator*()

big_integer liph::big_integer::operator* ( const big_integer other) const

◆ operator+()

big_integer liph::big_integer::operator+ ( const big_integer other) const

◆ operator-() [1/2]

big_integer liph::big_integer::operator- ( ) const

◆ operator-() [2/2]

big_integer liph::big_integer::operator- ( const big_integer other) const

◆ operator/()

big_integer liph::big_integer::operator/ ( const big_integer other) const

◆ operator<()

bool liph::big_integer::operator< ( const big_integer other) const

◆ operator<=()

bool liph::big_integer::operator<= ( const big_integer other) const

◆ operator=() [1/2]

big_integer & liph::big_integer::operator= ( big_integer &&  other)

◆ operator=() [2/2]

big_integer & liph::big_integer::operator= ( const big_integer other)

◆ operator==()

bool liph::big_integer::operator== ( const big_integer other) const

◆ operator>()

bool liph::big_integer::operator> ( const big_integer other) const

◆ operator>=()

bool liph::big_integer::operator>= ( const big_integer other) const

◆ rand()

big_integer liph::big_integer::rand ( int  max_size = 128)
static

◆ sign()

int liph::big_integer::sign ( ) const

◆ string()

std::string liph::big_integer::string ( ) const

◆ zero()

bool liph::big_integer::zero ( ) const

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