#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 | 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 | reserve (size_t new_cap) |
| 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 |
|
| void | checkType (const VType &expected) const |
| bool | findKey (const std::string &key, size_t &retIdx) const |
| void | writeArray (unsigned int prettyIndent, unsigned int indentLevel, std::string &s) const |
| void | writeObject (unsigned int prettyIndent, unsigned int indentLevel, std::string &s) const |
Definition at line 22 of file univalue.h.
◆ VType
| Enumerator |
|---|
| VNULL | |
| VOBJ | |
| VARR | |
| VSTR | |
| VNUM | |
| VBOOL | |
Definition at line 24 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()
template<typename Int>
| 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()
| enum VType UniValue::getType |
( |
| ) |
const |
|
inline |
◆ 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]
| const UniValue & UniValue::operator[] |
( |
size_t | index | ) |
const |
◆ push_back()
| void UniValue::push_back |
( |
UniValue | val | ) |
|
◆ push_backV() [1/2]
| void UniValue::push_backV |
( |
const std::vector< UniValue > & | vec | ) |
|
◆ push_backV() [2/2]
template<class It>
| void UniValue::push_backV |
( |
It | first, |
|
|
It | last ) |
◆ pushKV()
| void UniValue::pushKV |
( |
std::string | key, |
|
|
UniValue | val ) |
◆ pushKVEnd()
| void UniValue::pushKVEnd |
( |
std::string | key, |
|
|
UniValue | val ) |
◆ pushKVs()
◆ read()
| bool UniValue::read |
( |
std::string_view | raw | ) |
|
◆ reserve()
| void UniValue::reserve |
( |
size_t | new_cap | ) |
|
◆ setArray()
| void UniValue::setArray |
( |
| ) |
|
◆ setBool()
| void UniValue::setBool |
( |
bool | val | ) |
|
◆ setFloat()
| void UniValue::setFloat |
( |
double | val | ) |
|
◆ setInt() [1/3]
| void UniValue::setInt |
( |
int | val_ | ) |
|
|
inline |
◆ setInt() [2/3]
| void UniValue::setInt |
( |
int64_t | val | ) |
|
◆ setInt() [3/3]
| void UniValue::setInt |
( |
uint64_t | val | ) |
|
◆ 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()
| enum VType UniValue::type |
( |
| ) |
const |
|
inline |
◆ write()
| std::string UniValue::write |
( |
unsigned int | prettyIndent = 0, |
|
|
unsigned int | indentLevel = 0 ) const |
◆ writeArray()
| void UniValue::writeArray |
( |
unsigned int | prettyIndent, |
|
|
unsigned int | indentLevel, |
|
|
std::string & | s ) const |
|
private |
◆ writeObject()
| void UniValue::writeObject |
( |
unsigned int | prettyIndent, |
|
|
unsigned int | indentLevel, |
|
|
std::string & | s ) const |
|
private |
◆ 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: