![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
Template base class for unsigned big integers. More...
#include <arith_uint256.h>
Public Member Functions | |
| base_uint () | |
| base_uint (const base_uint &b) | |
| base_uint & | operator= (const base_uint &b) |
| base_uint (uint64_t b) | |
| base_uint (const std::string &str) | |
| base_uint (const std::vector< unsigned char > &vch) | |
| bool | operator! () const |
| const base_uint | operator~ () const |
| const base_uint | operator- () const |
| double | getdouble () const |
| base_uint & | operator= (uint64_t b) |
| base_uint & | operator^= (const base_uint &b) |
| base_uint & | operator&= (const base_uint &b) |
| base_uint & | operator|= (const base_uint &b) |
| base_uint & | operator^= (uint64_t b) |
| base_uint & | operator|= (uint64_t b) |
| base_uint & | operator<<= (unsigned int shift) |
| base_uint & | operator>>= (unsigned int shift) |
| base_uint & | operator+= (const base_uint &b) |
| base_uint & | operator-= (const base_uint &b) |
| base_uint & | operator+= (uint64_t b64) |
| base_uint & | operator-= (uint64_t b64) |
| base_uint & | operator*= (uint32_t b32) |
| base_uint & | operator*= (const base_uint &b) |
| base_uint & | operator/= (const base_uint &b) |
| base_uint & | operator++ () |
| const base_uint | operator++ (int) |
| base_uint & | operator-- () |
| const base_uint | operator-- (int) |
| int | CompareTo (const base_uint &b) const |
| bool | EqualTo (uint64_t b) const |
| std::string | GetHex () const |
| void | SetHex (const char *psz) |
| void | SetHex (const std::string &str) |
| std::string | ToString () const |
| std::string | ToStringReverseEndian () const |
| unsigned char * | begin () |
| unsigned char * | end () |
| const unsigned char * | begin () const |
| const unsigned char * | end () const |
| unsigned int | size () const |
| uint64_t | Get64 (int n=0) const |
| uint32_t | Get32 (int n=0) const |
| unsigned int | bits () const |
| Returns the position of the highest bit set plus one, or zero if the value is zero. More... | |
| uint64_t | GetLow64 () const |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| void | Unserialize (Stream &s) |
| void | SetNull () |
| bool | IsNull () const |
Protected Attributes | |
| uint32_t | pn [WIDTH] |
Static Protected Attributes | |
| static constexpr int | WIDTH = BITS / 32 |
Template base class for unsigned big integers.
Definition at line 26 of file arith_uint256.h.
Definition at line 33 of file arith_uint256.h.
Definition at line 39 of file arith_uint256.h.
Definition at line 52 of file arith_uint256.h.
Definition at line 16 of file arith_uint256.cpp.
|
inline |
|
inline |
Definition at line 247 of file arith_uint256.h.
| unsigned int base_uint< BITS >::bits |
Returns the position of the highest bit set plus one, or zero if the value is zero.
Definition at line 215 of file arith_uint256.cpp.
Definition at line 118 of file arith_uint256.cpp.
|
inline |
|
inline |
Definition at line 252 of file arith_uint256.h.
| bool base_uint< BITS >::EqualTo | ( | uint64_t | b | ) | const |
Definition at line 130 of file arith_uint256.cpp.
|
inline |
Definition at line 267 of file arith_uint256.h.
|
inline |
Definition at line 262 of file arith_uint256.h.
| double base_uint< BITS >::getdouble |
Definition at line 144 of file arith_uint256.cpp.
| std::string base_uint< BITS >::GetHex |
|
inline |
|
inline |
|
inline |
Definition at line 63 of file arith_uint256.h.
|
inline |
Definition at line 106 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator*= | ( | const base_uint< BITS > & | b | ) |
Definition at line 76 of file arith_uint256.cpp.
Definition at line 64 of file arith_uint256.cpp.
Definition at line 175 of file arith_uint256.h.
Definition at line 184 of file arith_uint256.h.
|
inline |
Definition at line 137 of file arith_uint256.h.
Definition at line 155 of file arith_uint256.h.
Definition at line 79 of file arith_uint256.h.
Definition at line 192 of file arith_uint256.h.
Definition at line 201 of file arith_uint256.h.
|
inline |
Definition at line 149 of file arith_uint256.h.
Definition at line 163 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator<<= | ( | unsigned int | shift | ) |
Definition at line 22 of file arith_uint256.cpp.
|
inline |
Definition at line 45 of file arith_uint256.h.
Definition at line 90 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator>>= | ( | unsigned int | shift | ) |
Definition at line 47 of file arith_uint256.cpp.
|
inline |
Definition at line 99 of file arith_uint256.h.
Definition at line 120 of file arith_uint256.h.
|
inline |
Definition at line 113 of file arith_uint256.h.
Definition at line 127 of file arith_uint256.h.
Definition at line 71 of file arith_uint256.h.
|
inline |
Definition at line 284 of file arith_uint256.h.
| void base_uint< BITS >::SetHex | ( | const char * | psz | ) |
| void base_uint< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 194 of file arith_uint256.cpp.
|
inline |
Definition at line 295 of file arith_uint256.h.
|
inline |
| std::string base_uint< BITS >::ToString |
| std::string base_uint< BITS >::ToStringReverseEndian |
Definition at line 206 of file arith_uint256.cpp.
|
inline |
Definition at line 290 of file arith_uint256.h.
|
friend |
Definition at line 312 of file arith_uint256.h.
|
friend |
Definition at line 313 of file arith_uint256.h.
|
friend |
Definition at line 314 of file arith_uint256.h.
|
friend |
Definition at line 223 of file arith_uint256.h.
Definition at line 229 of file arith_uint256.h.
|
friend |
Definition at line 217 of file arith_uint256.h.
|
friend |
Definition at line 214 of file arith_uint256.h.
|
friend |
Definition at line 221 of file arith_uint256.h.
|
friend |
Definition at line 212 of file arith_uint256.h.
|
friend |
Definition at line 213 of file arith_uint256.h.
|
friend |
Definition at line 215 of file arith_uint256.h.
|
friend |
Definition at line 225 of file arith_uint256.h.
|
friend |
Definition at line 220 of file arith_uint256.h.
|
friend |
Definition at line 227 of file arith_uint256.h.
|
friend |
Definition at line 222 of file arith_uint256.h.
|
friend |
Definition at line 228 of file arith_uint256.h.
|
friend |
Definition at line 224 of file arith_uint256.h.
|
friend |
Definition at line 226 of file arith_uint256.h.
|
friend |
Definition at line 219 of file arith_uint256.h.
|
friend |
Definition at line 218 of file arith_uint256.h.
|
friend |
Definition at line 216 of file arith_uint256.h.
|
friend |
Definition at line 308 of file arith_uint256.h.
|
friend |
Definition at line 309 of file arith_uint256.h.
|
friend |
Definition at line 310 of file arith_uint256.h.
Definition at line 30 of file arith_uint256.h.
|
staticconstexprprotected |
Definition at line 29 of file arith_uint256.h.