#include <univalue.h>
|
| UniValue () |
|
| UniValue (UniValue::VType type, std::string str={}) |
|
template<typename Ref , typename T = std::remove_cv_t<std::remove_reference_t<Ref>>, std::enable_if_t< std::is_floating_point_v< T >||std::is_same_v< bool, T >||std::is_signed_v< T >||std::is_unsigned_v< T >||std::is_constructible_v< std::string, T >, bool > = true> |
| UniValue (Ref &&val) |
|
void | clear () |
|
void | reserve (size_t n) |
|
void | setNull () |
|
void | setBool (bool val) |
|
void | setNumStr (std::string str) |
|
void | setInt (uint64_t val) |
|
void | setInt (int64_t val) |
|
void | setInt (int val_) |
|
void | setFloat (double val) |
|
void | setStr (std::string str) |
|
void | setArray () |
|
void | setObject () |
|
enum VType | getType () const |
|
const std::string & | getValStr () const |
|
bool | empty () const |
|
size_t | size () const |
|
void | getObjMap (std::map< std::string, UniValue > &kv) const |
|
bool | checkObject (const std::map< std::string, UniValue::VType > &memberTypes) const |
|
const UniValue & | operator[] (const std::string &key) const |
|
const UniValue & | operator[] (size_t index) const |
|
bool | exists (const std::string &key) const |
|
bool | isNull () const |
|
bool | isTrue () const |
|
bool | isFalse () const |
|
bool | isBool () const |
|
bool | isStr () const |
|
bool | isNum () const |
|
bool | isArray () const |
|
bool | isObject () const |
|
void | push_back (UniValue val) |
|
void | push_backV (const std::vector< UniValue > &vec) |
|
template<class It > |
void | push_backV (It first, It last) |
|
void | pushKVEnd (std::string key, UniValue val) |
|
void | pushKV (std::string key, UniValue val) |
|
void | pushKVs (UniValue obj) |
|
std::string | write (unsigned int prettyIndent=0, unsigned int indentLevel=0) const |
|
bool | read (std::string_view raw) |
|
const std::vector< std::string > & | getKeys () const |
|
const std::vector< UniValue > & | getValues () const |
|
template<typename Int > |
Int | getInt () const |
|
bool | get_bool () const |
|
const std::string & | get_str () const |
|
double | get_real () const |
|
const UniValue & | get_obj () const |
|
const UniValue & | get_array () const |
|
enum VType | type () const |
|
const UniValue & | find_value (std::string_view key) const |
|
Definition at line 25 of file univalue.h.
◆ VType
Enumerator |
---|
VNULL | |
VOBJ | |
VARR | |
VSTR | |
VNUM | |
VBOOL | |
Definition at line 29 of file univalue.h.
◆ UniValue() [1/3]
◆ UniValue() [2/3]
◆ UniValue() [3/3]
template<
typename Ref ,
typename T = std::remove_cv_t<std::remove_reference_t<Ref>>, std::enable_if_t< std::is_floating_point_v< T >||std::is_same_v<
bool, T >||std::is_signed_v< T >||std::is_unsigned_v< T >||std::is_constructible_v< std::string, T >,
bool > = true>
UniValue::UniValue |
( |
Ref && |
val | ) |
|
|
inline |
◆ checkObject()
bool UniValue::checkObject |
( |
const std::map< std::string, UniValue::VType > & |
memberTypes | ) |
const |
◆ checkType()
void UniValue::checkType |
( |
const VType & |
expected | ) |
const |
|
private |
◆ clear()
◆ empty()
bool UniValue::empty |
( |
| ) |
const |
|
inline |
◆ exists()
bool UniValue::exists |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ find_value()
const UniValue & UniValue::find_value |
( |
std::string_view |
key | ) |
const |
◆ findKey()
bool UniValue::findKey |
( |
const std::string & |
key, |
|
|
size_t & |
retIdx |
|
) |
| const |
|
private |
◆ get_array()
const UniValue & UniValue::get_array |
( |
| ) |
const |
◆ get_bool()
bool UniValue::get_bool |
( |
| ) |
const |
◆ get_obj()
const UniValue & UniValue::get_obj |
( |
| ) |
const |
◆ get_real()
double UniValue::get_real |
( |
| ) |
const |
◆ get_str()
const std::string & UniValue::get_str |
( |
| ) |
const |
◆ getInt()
Int UniValue::getInt |
( |
| ) |
const |
◆ getKeys()
const std::vector< std::string > & UniValue::getKeys |
( |
| ) |
const |
◆ getObjMap()
void UniValue::getObjMap |
( |
std::map< std::string, UniValue > & |
kv | ) |
const |
◆ getType()
◆ getValStr()
const std::string & UniValue::getValStr |
( |
| ) |
const |
|
inline |
◆ getValues()
const std::vector< UniValue > & UniValue::getValues |
( |
| ) |
const |
◆ isArray()
bool UniValue::isArray |
( |
| ) |
const |
|
inline |
◆ isBool()
bool UniValue::isBool |
( |
| ) |
const |
|
inline |
◆ isFalse()
bool UniValue::isFalse |
( |
| ) |
const |
|
inline |
◆ isNull()
bool UniValue::isNull |
( |
| ) |
const |
|
inline |
◆ isNum()
bool UniValue::isNum |
( |
| ) |
const |
|
inline |
◆ isObject()
bool UniValue::isObject |
( |
| ) |
const |
|
inline |
◆ isStr()
bool UniValue::isStr |
( |
| ) |
const |
|
inline |
◆ isTrue()
bool UniValue::isTrue |
( |
| ) |
const |
|
inline |
◆ operator[]() [1/2]
const UniValue & UniValue::operator[] |
( |
const std::string & |
key | ) |
const |
◆ operator[]() [2/2]
◆ push_back()
◆ push_backV() [1/2]
void UniValue::push_backV |
( |
const std::vector< UniValue > & |
vec | ) |
|
◆ push_backV() [2/2]
void UniValue::push_backV |
( |
It |
first, |
|
|
It |
last |
|
) |
| |
◆ pushKV()
◆ pushKVEnd()
◆ pushKVs()
◆ read()
bool UniValue::read |
( |
std::string_view |
raw | ) |
|
◆ reserve()
◆ setArray()
void UniValue::setArray |
( |
| ) |
|
◆ setBool()
◆ setFloat()
◆ setInt() [1/3]
◆ setInt() [2/3]
◆ setInt() [3/3]
◆ setNull()
void UniValue::setNull |
( |
| ) |
|
◆ setNumStr()
void UniValue::setNumStr |
( |
std::string |
str | ) |
|
◆ setObject()
void UniValue::setObject |
( |
| ) |
|
◆ setStr()
void UniValue::setStr |
( |
std::string |
str | ) |
|
◆ size()
size_t UniValue::size |
( |
| ) |
const |
|
inline |
◆ type()
◆ write()
◆ ::UniValueStreamWriter
◆ keys
std::vector<std::string> UniValue::keys |
|
private |
◆ typ
◆ val
std::string UniValue::val |
|
private |
◆ values
The documentation for this class was generated from the following files: