BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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

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

Definition at line 74 of file base58.cpp.

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

Definition at line 77 of file base58.cpp.

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

Definition at line 94 of file base58.cpp.

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

Definition at line 100 of file base58.cpp.

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

Definition at line 101 of file base58.cpp.

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

Definition at line 102 of file base58.cpp.

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

Definition at line 103 of file base58.cpp.

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

Definition at line 104 of file base58.cpp.

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

Definition at line 105 of file base58.cpp.

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

Definition at line 106 of file base58.cpp.

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

Definition at line 107 of file base58.cpp.

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

Definition at line 109 of file base58.cpp.

Member Function Documentation

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

Definition at line 242 of file base58.cpp.

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

Definition at line 311 of file base58.cpp.

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

Definition at line 131 of file base58.cpp.

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

Definition at line 126 of file base58.cpp.

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

Definition at line 121 of file base58.cpp.

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

Definition at line 218 of file base58.cpp.

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

Definition at line 318 of file base58.cpp.

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

Definition at line 353 of file base58.cpp.

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

Definition at line 337 of file base58.cpp.

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

Definition at line 386 of file base58.cpp.

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

Definition at line 394 of file base58.cpp.

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

Definition at line 323 of file base58.cpp.

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

Definition at line 402 of file base58.cpp.

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

Definition at line 412 of file base58.cpp.

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

Definition at line 330 of file base58.cpp.

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

Definition at line 345 of file base58.cpp.

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

Definition at line 361 of file base58.cpp.

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

Definition at line 87 of file base58.cpp.

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

Definition at line 368 of file base58.cpp.

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

Definition at line 230 of file base58.cpp.

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

Definition at line 255 of file base58.cpp.

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

Definition at line 140 of file base58.cpp.

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

Definition at line 175 of file base58.cpp.

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

Definition at line 115 of file base58.cpp.

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

Definition at line 203 of file base58.cpp.

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

Definition at line 420 of file base58.cpp.

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

Definition at line 423 of file base58.cpp.

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: