BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | List of all members
fc::detail::CBigNum Class Reference

Public Member Functions

 CBigNum ()
 
 CBigNum (const CBigNum &b)
 
CBigNumoperator= (const CBigNum &b)
 
 ~CBigNum ()
 
 CBigNum (signed char n)
 
 CBigNum (short n)
 
 CBigNum (int n)
 
 CBigNum (int64_t n)
 
 CBigNum (unsigned char n)
 
 CBigNum (unsigned short n)
 
 CBigNum (unsigned int n)
 
 CBigNum (uint64_t n)
 
 CBigNum (const std::vector< unsigned char > &vch)
 
void setulong (unsigned long n)
 
unsigned long getulong () const
 
unsigned int getuint () const
 
int getint () const
 
void setint64 (int64_t n)
 
void setuint64 (uint64_t n)
 
void setvch (const std::vector< unsigned char > &vch)
 
std::vector< unsigned char > getvch () const
 
CBigNumSetCompact (unsigned int nCompact)
 
unsigned int GetCompact () const
 
void SetHex (const std::string &str)
 
std::string ToString (int nBase=10) const
 
std::string GetHex () const
 
bool operator! () const
 
CBigNumoperator+= (const CBigNum &b)
 
CBigNumoperator-= (const CBigNum &b)
 
CBigNumoperator*= (const CBigNum &b)
 
CBigNumoperator/= (const CBigNum &b)
 
CBigNumoperator%= (const CBigNum &b)
 
CBigNumoperator<<= (unsigned int shift)
 
CBigNumoperator>>= (unsigned int shift)
 
CBigNumoperator++ ()
 
const CBigNum operator++ (int)
 
CBigNumoperator-- ()
 
const CBigNum operator-- (int)
 
const BIGNUMto_bignum () const
 
BIGNUMto_bignum ()
 

Detailed Description

C++ wrapper for BIGNUM (OpenSSL bignum)

Definition at line 70 of file base58.cpp.

Constructor & Destructor Documentation

◆ CBigNum() [1/11]

fc::detail::CBigNum::CBigNum ( )
inline

Definition at line 74 of file base58.cpp.

◆ CBigNum() [2/11]

fc::detail::CBigNum::CBigNum ( const CBigNum b)
inline

Definition at line 77 of file base58.cpp.

◆ ~CBigNum()

fc::detail::CBigNum::~CBigNum ( )
inline

Definition at line 94 of file base58.cpp.

◆ CBigNum() [3/11]

fc::detail::CBigNum::CBigNum ( signed char  n)
inline

Definition at line 100 of file base58.cpp.

◆ CBigNum() [4/11]

fc::detail::CBigNum::CBigNum ( short  n)
inline

Definition at line 101 of file base58.cpp.

◆ CBigNum() [5/11]

fc::detail::CBigNum::CBigNum ( int  n)
inline

Definition at line 102 of file base58.cpp.

◆ CBigNum() [6/11]

fc::detail::CBigNum::CBigNum ( int64_t  n)
inline

Definition at line 103 of file base58.cpp.

◆ CBigNum() [7/11]

fc::detail::CBigNum::CBigNum ( unsigned char  n)
inline

Definition at line 104 of file base58.cpp.

◆ CBigNum() [8/11]

fc::detail::CBigNum::CBigNum ( unsigned short  n)
inline

Definition at line 105 of file base58.cpp.

◆ CBigNum() [9/11]

fc::detail::CBigNum::CBigNum ( unsigned int  n)
inline

Definition at line 106 of file base58.cpp.

◆ CBigNum() [10/11]

fc::detail::CBigNum::CBigNum ( uint64_t  n)
inline

Definition at line 107 of file base58.cpp.

◆ CBigNum() [11/11]

fc::detail::CBigNum::CBigNum ( const std::vector< unsigned char > &  vch)
inlineexplicit

Definition at line 109 of file base58.cpp.

Member Function Documentation

◆ GetCompact()

unsigned int fc::detail::CBigNum::GetCompact ( ) const
inline

Definition at line 242 of file base58.cpp.

◆ GetHex()

std::string fc::detail::CBigNum::GetHex ( ) const
inline

Definition at line 311 of file base58.cpp.

◆ getint()

int fc::detail::CBigNum::getint ( ) const
inline

Definition at line 131 of file base58.cpp.

◆ getuint()

unsigned int fc::detail::CBigNum::getuint ( ) const
inline

Definition at line 126 of file base58.cpp.

◆ getulong()

unsigned long fc::detail::CBigNum::getulong ( ) const
inline

Definition at line 121 of file base58.cpp.

◆ getvch()

std::vector<unsigned char> fc::detail::CBigNum::getvch ( ) const
inline

Definition at line 218 of file base58.cpp.

◆ operator!()

bool fc::detail::CBigNum::operator! ( ) const
inline

Definition at line 318 of file base58.cpp.

◆ operator%=()

CBigNum& fc::detail::CBigNum::operator%= ( const CBigNum b)
inline

Definition at line 353 of file base58.cpp.

◆ operator*=()

CBigNum& fc::detail::CBigNum::operator*= ( const CBigNum b)
inline

Definition at line 337 of file base58.cpp.

◆ operator++() [1/2]

CBigNum& fc::detail::CBigNum::operator++ ( )
inline

Definition at line 386 of file base58.cpp.

◆ operator++() [2/2]

const CBigNum fc::detail::CBigNum::operator++ ( int  )
inline

Definition at line 394 of file base58.cpp.

◆ operator+=()

CBigNum& fc::detail::CBigNum::operator+= ( const CBigNum b)
inline

Definition at line 323 of file base58.cpp.

◆ operator--() [1/2]

CBigNum& fc::detail::CBigNum::operator-- ( )
inline

Definition at line 402 of file base58.cpp.

◆ operator--() [2/2]

const CBigNum fc::detail::CBigNum::operator-- ( int  )
inline

Definition at line 412 of file base58.cpp.

◆ operator-=()

CBigNum& fc::detail::CBigNum::operator-= ( const CBigNum b)
inline

Definition at line 330 of file base58.cpp.

◆ operator/=()

CBigNum& fc::detail::CBigNum::operator/= ( const CBigNum b)
inline

Definition at line 345 of file base58.cpp.

◆ operator<<=()

CBigNum& fc::detail::CBigNum::operator<<= ( unsigned int  shift)
inline

Definition at line 361 of file base58.cpp.

◆ operator=()

CBigNum& fc::detail::CBigNum::operator= ( const CBigNum b)
inline

Definition at line 87 of file base58.cpp.

◆ operator>>=()

CBigNum& fc::detail::CBigNum::operator>>= ( unsigned int  shift)
inline

Definition at line 368 of file base58.cpp.

◆ SetCompact()

CBigNum& fc::detail::CBigNum::SetCompact ( unsigned int  nCompact)
inline

Definition at line 230 of file base58.cpp.

◆ SetHex()

void fc::detail::CBigNum::SetHex ( const std::string &  str)
inline

Definition at line 255 of file base58.cpp.

◆ setint64()

void fc::detail::CBigNum::setint64 ( int64_t  n)
inline

Definition at line 140 of file base58.cpp.

◆ setuint64()

void fc::detail::CBigNum::setuint64 ( uint64_t  n)
inline

Definition at line 175 of file base58.cpp.

◆ setulong()

void fc::detail::CBigNum::setulong ( unsigned long  n)
inline

Definition at line 115 of file base58.cpp.

◆ setvch()

void fc::detail::CBigNum::setvch ( const std::vector< unsigned char > &  vch)
inline

Definition at line 203 of file base58.cpp.

◆ to_bignum() [1/2]

BIGNUM* fc::detail::CBigNum::to_bignum ( )
inline

Definition at line 423 of file base58.cpp.

◆ to_bignum() [2/2]

const BIGNUM* fc::detail::CBigNum::to_bignum ( ) const
inline

Definition at line 420 of file base58.cpp.

◆ ToString()

std::string fc::detail::CBigNum::ToString ( int  nBase = 10) const
inline

Definition at line 285 of file base58.cpp.


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