BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Static Public Member Functions | List of all members
fc::bigint Class Reference

#include <bigint.hpp>

Public Member Functions

 bigint (const std::vector< char > &bige)
 
 bigint (const char *bige, uint32_t l)
 
 bigint (uint64_t value)
 
 bigint ()
 
 bigint (const bigint &c)
 
 bigint (bigint &&c)
 
 bigint (BIGNUM *n)
 
 ~bigint ()
 
bigintoperator= (const bigint &a)
 
bigintoperator= (bigint &&a)
 
 operator bool () const
 
bool is_negative () const
 
int64_t to_int64 () const
 
int64_t log2 () const
 
bigint exp (const bigint &c) const
 
bool operator< (const bigint &c) const
 
bool operator> (const bigint &c) const
 
bool operator>= (const bigint &c) const
 
bool operator== (const bigint &c) const
 
bool operator!= (const bigint &c) const
 
bigint operator+ (const bigint &a) const
 
bigint operator* (const bigint &a) const
 
bigint operator/ (const bigint &a) const
 
bigint operator% (const bigint &a) const
 
bigint operator/= (const bigint &a)
 
bigint operator*= (const bigint &a)
 
bigintoperator+= (const bigint &a)
 
bigintoperator-= (const bigint &a)
 
bigintoperator<<= (uint32_t i)
 
bigintoperator>>= (uint32_t i)
 
bigint operator- (const bigint &a) const
 
bigint operator++ (int)
 
bigintoperator++ ()
 
bigint operator-- (int)
 
bigintoperator-- ()
 
 operator std::string () const
 
 operator std::vector< char > () const
 
BIGNUMdup () const
 
BIGNUMget () const
 

Static Public Member Functions

static bigint random (uint32_t bits, int t, int)
 

Detailed Description

Definition at line 10 of file bigint.hpp.

Constructor & Destructor Documentation

fc::bigint::bigint ( const std::vector< char > &  bige)

Definition at line 15 of file bigint.cpp.

fc::bigint::bigint ( const char *  bige,
uint32_t  l 
)

Definition at line 11 of file bigint.cpp.

fc::bigint::bigint ( uint64_t  value)

Definition at line 32 of file bigint.cpp.

fc::bigint::bigint ( )

Definition at line 23 of file bigint.cpp.

fc::bigint::bigint ( const bigint c)

Definition at line 39 of file bigint.cpp.

fc::bigint::bigint ( bigint &&  c)

Definition at line 43 of file bigint.cpp.

fc::bigint::bigint ( BIGNUM n)
explicit

Definition at line 19 of file bigint.cpp.

fc::bigint::~bigint ( )

Definition at line 48 of file bigint.cpp.

Member Function Documentation

BIGNUM * fc::bigint::dup ( ) const

Definition at line 27 of file bigint.cpp.

bigint fc::bigint::exp ( const bigint c) const

Definition at line 182 of file bigint.cpp.

BIGNUM* fc::bigint::get ( ) const
inline

Definition at line 65 of file bigint.hpp.

bool fc::bigint::is_negative ( ) const

Definition at line 52 of file bigint.cpp.

int64_t fc::bigint::log2 ( ) const

Definition at line 64 of file bigint.cpp.

fc::bigint::operator bool ( ) const
explicit

Definition at line 80 of file bigint.cpp.

fc::bigint::operator std::string ( ) const

Definition at line 204 of file bigint.cpp.

fc::bigint::operator std::vector< char > ( ) const

Definition at line 208 of file bigint.cpp.

bool fc::bigint::operator!= ( const bigint c) const

Definition at line 77 of file bigint.cpp.

bigint fc::bigint::operator% ( const bigint a) const

Definition at line 138 of file bigint.cpp.

bigint fc::bigint::operator* ( const bigint a) const

Definition at line 124 of file bigint.cpp.

bigint fc::bigint::operator*= ( const bigint a)

Definition at line 154 of file bigint.cpp.

bigint fc::bigint::operator+ ( const bigint a) const

Definition at line 105 of file bigint.cpp.

bigint fc::bigint::operator++ ( int  )

Definition at line 84 of file bigint.cpp.

bigint & fc::bigint::operator++ ( )

Definition at line 90 of file bigint.cpp.

bigint & fc::bigint::operator+= ( const bigint a)

Definition at line 110 of file bigint.cpp.

bigint fc::bigint::operator- ( const bigint a) const

Definition at line 177 of file bigint.cpp.

bigint fc::bigint::operator-- ( int  )

Definition at line 94 of file bigint.cpp.

bigint & fc::bigint::operator-- ( )

Definition at line 100 of file bigint.cpp.

bigint & fc::bigint::operator-= ( const bigint a)

Definition at line 116 of file bigint.cpp.

bigint fc::bigint::operator/ ( const bigint a) const

Definition at line 131 of file bigint.cpp.

bigint fc::bigint::operator/= ( const bigint a)

Definition at line 146 of file bigint.cpp.

bool fc::bigint::operator< ( const bigint c) const

Definition at line 65 of file bigint.cpp.

bigint & fc::bigint::operator<<= ( uint32_t  i)

Definition at line 167 of file bigint.cpp.

bigint & fc::bigint::operator= ( const bigint a)

Definition at line 198 of file bigint.cpp.

bigint & fc::bigint::operator= ( bigint &&  a)

Definition at line 192 of file bigint.cpp.

bool fc::bigint::operator== ( const bigint c) const

Definition at line 74 of file bigint.cpp.

bool fc::bigint::operator> ( const bigint c) const

Definition at line 68 of file bigint.cpp.

bool fc::bigint::operator>= ( const bigint c) const

Definition at line 71 of file bigint.cpp.

bigint & fc::bigint::operator>>= ( uint32_t  i)

Definition at line 159 of file bigint.cpp.

static bigint fc::bigint::random ( uint32_t  bits,
int  t,
int   
)
static
int64_t fc::bigint::to_int64 ( ) const

Definition at line 54 of file bigint.cpp.


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