![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Base class without constructors for uint256 and uint160. More...
#include <uint256.h>
Public Member Functions | |
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++ () |
const base_uint | operator++ (int) |
base_uint & | operator-- () |
const base_uint | operator-- (int) |
std::string | GetHex () const |
void | SetHex (const char *psz) |
void | SetHex (const std::string &str) |
std::string | ToString () const |
unsigned char * | begin () |
unsigned char * | end () |
const unsigned char * | begin () const |
const unsigned char * | end () const |
unsigned int | size () const |
uint64_t | GetLow64 () const |
unsigned int | GetSerializeSize (int nType, int nVersion) const |
template<typename Stream > | |
void | Serialize (Stream &s, int nType, int nVersion) const |
template<typename Stream > | |
void | Unserialize (Stream &s, int nType, int nVersion) |
Protected Types | |
enum | { WIDTH =BITS/32 } |
Protected Attributes | |
uint32_t | pn [WIDTH] |
Friends | |
class | uint160 |
class | uint256 |
bool | operator< (const base_uint &a, const base_uint &b) |
bool | operator<= (const base_uint &a, const base_uint &b) |
bool | operator> (const base_uint &a, const base_uint &b) |
bool | operator>= (const base_uint &a, const base_uint &b) |
bool | operator== (const base_uint &a, const base_uint &b) |
bool | operator== (const base_uint &a, uint64_t b) |
bool | operator!= (const base_uint &a, const base_uint &b) |
bool | operator!= (const base_uint &a, uint64_t b) |
Base class without constructors for uint256 and uint160.
This makes the compiler let you use it in a union.
|
protected |
|
inline |
Definition at line 345 of file uint256.h.
Referenced by CBloomFilter::contains().
|
inline |
|
inline |
Definition at line 350 of file uint256.h.
References base_uint< BITS >::WIDTH.
Referenced by CBloomFilter::contains().
|
inline |
Definition at line 360 of file uint256.h.
References base_uint< BITS >::WIDTH.
|
inline |
Definition at line 58 of file uint256.h.
References base_uint< BITS >::WIDTH.
Referenced by GetNetworkHashPS(), InvalidChainFound(), and UpdateTip().
|
inline |
Definition at line 297 of file uint256.h.
References base_uint< BITS >::pn.
Referenced by ActivateBestChain(), CWallet::AddToWallet(), blockToJSON(), CMPOffer::CMPOffer(), mastercore::DEx_acceptCreate(), mastercore::DEx_acceptDestroy(), getactivedexsells_MP(), getbestblockhash(), getblockchaininfo(), getblockhash(), getblocktemplate(), getcrowdsale_MP(), getgrants_MP(), getproperty_MP(), gettrade_MP(), gettxout(), gettxoutsetinfo(), mastercore::isCrowdsalePurchase(), mastercore::isMetaDExOfferActive(), listblocktransactions_MP(), listlockunspent(), ListReceived(), listsinceblock(), CMPTransaction::logicMath_SimpleSend(), MetaDexObjectToJSON(), msc_initial_scan(), NotifyAlertChanged(), NotifyTransactionChanged(), parseTransaction(), pendingAdd(), pendingDelete(), populateRPCTransactionObject(), CMPTransaction::print(), CMPPending::print(), send_MP(), sendfrom(), sendmany(), SendMPDialog::sendMPTransaction(), sendrawtransaction(), sendrawtx_MP(), sendtoaddress(), sendtoowners_MP(), base_uint< BITS >::ToString(), TxToJSON(), CoinControlDialog::updateView(), and WalletTxToJSON().
|
inline |
Definition at line 370 of file uint256.h.
References base_uint< BITS >::WIDTH.
|
inline |
Definition at line 377 of file uint256.h.
References base_uint< BITS >::pn.
|
inline |
Definition at line 33 of file uint256.h.
References base_uint< BITS >::WIDTH.
|
inline |
Definition at line 85 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
Definition at line 182 of file uint256.h.
References base_uint< BITS >::WIDTH.
|
inline |
Definition at line 147 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
Definition at line 49 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
Definition at line 199 of file uint256.h.
References base_uint< BITS >::WIDTH.
Definition at line 113 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
Definition at line 69 of file uint256.h.
References base_uint< BITS >::WIDTH.
Definition at line 130 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
|
inline |
Definition at line 78 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
|
inline |
Definition at line 92 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
Definition at line 41 of file uint256.h.
References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.
|
inline |
Definition at line 305 of file uint256.h.
References HexDigit(), and base_uint< BITS >::WIDTH.
Referenced by CMPTxList::findMetaDExCancel(), getsto_MP(), gettrade_MP(), gettransaction(), gettransaction_MP(), CMPSPInfo::getWatermark(), listsinceblock(), listtransactions_MP(), load_most_relevant_state(), ParseHashV(), prune_state_files(), base_uint< BITS >::SetHex(), CMPTxList::setLastAlert(), uint160::uint160(), uint256::uint256(), ClientModel::updateAlert(), and TransactionTableModel::updateTransaction().
|
inline |
Definition at line 335 of file uint256.h.
References base_uint< BITS >::SetHex().
Definition at line 365 of file uint256.h.
References base_uint< BITS >::pn.
|
inline |
Definition at line 340 of file uint256.h.
References base_uint< BITS >::GetHex().
Referenced by AcceptToMemoryPool(), AddOrphanTx(), AddToBlockIndex(), CWallet::AddToWallet(), AppInit2(), CheckForkWarningConditions(), CheckInputs(), ConnectTip(), CreateNewBlock(), TransactionTableModel::data(), DisconnectTip(), dumpwallet(), CMPTxList::exists(), CMPTxList::findMetaDExCancel(), CMPSPInfo::findSPByTX(), TransactionRecord::formatSubTxId(), CMPTradeList::getMatchingTrades(), GetNextWorkRequired(), CMPTxList::getNumberOfMetaDExCancels(), CMPTxList::getNumberOfPurchases(), CMPTxList::getPurchaseDetails(), getrawmempool(), CMPSTOList::getRecipients(), gettrade_MP(), CMPTxList::getTX(), InvalidChainFound(), load_most_relevant_state(), LoadBlockIndexDB(), msc_file_load(), CMPSPInfo::popBlock(), COrphan::print(), CBlock::print(), ProcessBlock(), ProcessMessage(), CMPSPInfo::putSP(), CMPTxList::recordMetaDExCancelTX(), CMPTxList::recordPaymentTX(), CMPSTOList::recordSTOReceive(), CMPTradeList::recordTrade(), CMPTxList::recordTX(), CWalletTx::RelayWalletTransaction(), CMPAccept::saveAccept(), CMPOffer::saveOffer(), selectCoins(), SendMessages(), CMPSPInfo::setWatermark(), CMPSPInfo::Entry::toJSON(), COutPoint::ToString(), CInv::ToString(), COutput::ToString(), CBlockIndex::ToString(), CDiskBlockIndex::ToString(), TXExodusFundraiser(), CMPSPInfo::updateSP(), UpdateTip(), TransactionTablePriv::updateWallet(), VerifyDB(), and write_state_file().
|
friend |
Definition at line 30 of file uint256.h.
Referenced by base_uint< BITS >::GetHex(), base_uint< BITS >::GetSerializeSize(), base_uint< BITS >::operator&=(), base_uint< BITS >::operator+=(), base_uint< BITS >::operator-(), base_uint< BITS >::operator<<=(), uint160::operator=(), uint256::operator=(), base_uint< BITS >::operator>>=(), base_uint< BITS >::operator^=(), base_uint< BITS >::operator|=(), base_uint< BITS >::operator~(), base_uint< BITS >::size(), uint160::uint160(), and uint256::uint256().