Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

univalue.h File Reference
#include <stdint.h>
#include <string.h>
#include <string>
#include <vector>
#include <map>
#include <cassert>
#include <sstream>
#include <utility>
+ Include dependency graph for univalue.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UniValue
 

Enumerations

enum  jtokentype {
  JTOK_ERR = -1, JTOK_NONE = 0, JTOK_OBJ_OPEN, JTOK_OBJ_CLOSE,
  JTOK_ARR_OPEN, JTOK_ARR_CLOSE, JTOK_COLON, JTOK_COMMA,
  JTOK_KW_NULL, JTOK_KW_TRUE, JTOK_KW_FALSE, JTOK_NUMBER,
  JTOK_STRING
}
 

Functions

static std::pair< std::string, UniValuePair (const char *cKey, const char *cVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, std::string strVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, uint64_t u64Val)
 
static std::pair< std::string, UniValuePair (const char *cKey, int64_t i64Val)
 
static std::pair< std::string, UniValuePair (const char *cKey, bool iVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, int iVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, double dVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, const UniValue &uVal)
 
static std::pair< std::string, UniValuePair (std::string key, const UniValue &uVal)
 
enum jtokentype getJsonToken (std::string &tokenVal, unsigned int &consumed, const char *raw, const char *end)
 
const char * uvTypeName (UniValue::VType t)
 
static bool jsonTokenIsValue (enum jtokentype jtt)
 
static bool json_isspace (int ch)
 
const UniValuefind_value (const UniValue &obj, const std::string &name)
 

Variables

const UniValue NullUniValue
 

Enumeration Type Documentation

◆ jtokentype

enum jtokentype
Enumerator
JTOK_ERR 
JTOK_NONE 
JTOK_OBJ_OPEN 
JTOK_OBJ_CLOSE 
JTOK_ARR_OPEN 
JTOK_ARR_CLOSE 
JTOK_COLON 
JTOK_COMMA 
JTOK_KW_NULL 
JTOK_KW_TRUE 
JTOK_KW_FALSE 
JTOK_NUMBER 
JTOK_STRING 

Definition at line 245 of file univalue.h.

Function Documentation

◆ find_value()

◆ getJsonToken()

enum jtokentype getJsonToken ( std::string &  tokenVal,
unsigned int &  consumed,
const char *  raw,
const char *  end 
)

Referenced by validNumStr().

◆ json_isspace()

static bool json_isspace ( int  ch)
inlinestatic

Definition at line 282 of file univalue.h.

Referenced by getJsonToken().

◆ jsonTokenIsValue()

static bool jsonTokenIsValue ( enum jtokentype  jtt)
inlinestatic

Definition at line 265 of file univalue.h.

References JTOK_KW_FALSE, JTOK_KW_NULL, JTOK_KW_TRUE, JTOK_NUMBER, and JTOK_STRING.

Referenced by UniValue::read().

◆ Pair() [1/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
const char *  cVal 
)
inlinestatic

Definition at line 185 of file univalue.h.

Referenced by AcentryToJSON(), CKeePassIntegrator::CKeePassRequest::addStrParameter(), BIP9SoftForkDesc(), BIP9SoftForkDescPushBack(), blockheaderToJSON(), blockToJSON(), bls_fromsecret(), bls_generate(), BuildDMNListEntry(), BuildQuorumInfo(), createmultisig(), decodescript(), dumphdinfo(), dumpwallet(), entryToJSON(), estimaterawfee(), estimatesmartfee(), fundrawtransaction(), getaddednodeinfo(), getaddressbalance(), getaddressdeltas(), getaddressmempool(), getaddressutxos(), getbestchainlock(), getblockchaininfo(), getblocktemplate(), getchaintips(), getchaintxstats(), getgovernanceinfo(), CPrivateSendServer::GetJsonInfo(), CPrivateSendClientSession::GetJsonInfo(), CPrivateSendClientManager::GetJsonInfo(), getmemoryinfo(), getmempoolancestors(), getmempooldescendants(), getmininginfo(), getnettotals(), getnetworkinfo(), GetNetworksInfo(), GetNextMasternodeForPayment(), getpeerinfo(), getprivatesendinfo(), getrawtransaction(), getspentinfo(), gettransaction(), gettxout(), gettxoutsetinfo(), getwalletinfo(), gobject_check(), gobject_get(), gobject_getcurrentvotes(), gobject_vote_conf(), JSONRPCError(), JSONRPCReplyObj(), JSONRPCRequestObj(), listaccounts(), listaddressbalances(), listbanned(), listlockunspent(), ListObjects(), ListReceived(), listsinceblock(), ListTransactions(), listunspent(), masternode_count(), masternode_status(), masternode_winners(), masternodelist(), MaybePushAddress(), mempoolInfoToJSON(), mempoolToJSON(), mnsync(), quorum_dkgstatus(), quorum_list(), quorum_memberof(), quorum_selectquorum(), rest_getutxos(), RPCLockedMemoryInfo(), signrawtransaction(), SoftForkDesc(), SoftForkMajorityDesc(), spork(), CCbTx::ToJson(), llmq::CRecoveredSig::ToJson(), CProRegTx::ToJson(), CMasternodeMetaInfo::ToJson(), CSimplifiedMNListEntry::ToJson(), llmq::CDKGDebugSessionStatus::ToJson(), llmq::CDKGDebugStatus::ToJson(), llmq::CFinalCommitment::ToJson(), CDeterministicMNState::ToJson(), CProUpServTx::ToJson(), llmq::CFinalCommitmentTxPayload::ToJson(), CSimplifiedMNListDiff::ToJson(), CProUpRegTx::ToJson(), CProUpRevTx::ToJson(), CDeterministicMN::ToJson(), CGovernanceManager::ToJson(), TxInErrorToJSON(), TxToJSON(), TxToUniv(), validateaddress(), VoteWithMasternodes(), waitforblock(), waitforblockheight(), waitfornewblock(), and WalletTxToJSON().

◆ Pair() [2/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
std::string  strVal 
)
inlinestatic

Definition at line 192 of file univalue.h.

◆ Pair() [3/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
uint64_t  u64Val 
)
inlinestatic

Definition at line 199 of file univalue.h.

◆ Pair() [4/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
int64_t  i64Val 
)
inlinestatic

Definition at line 206 of file univalue.h.

◆ Pair() [5/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
bool  iVal 
)
inlinestatic

Definition at line 213 of file univalue.h.

◆ Pair() [6/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
int  iVal 
)
inlinestatic

Definition at line 220 of file univalue.h.

◆ Pair() [7/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
double  dVal 
)
inlinestatic

Definition at line 227 of file univalue.h.

◆ Pair() [8/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
const UniValue uVal 
)
inlinestatic

Definition at line 234 of file univalue.h.

◆ Pair() [9/9]

static std::pair<std::string,UniValue> Pair ( std::string  key,
const UniValue uVal 
)
inlinestatic

Definition at line 240 of file univalue.h.

◆ uvTypeName()

Variable Documentation

◆ NullUniValue

const UniValue NullUniValue
Released under the MIT license