![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <univalue.h>
Public Types | |
| enum | VType { VNULL , VOBJ , VARR , VSTR , VNUM , VBOOL } |
Public Member Functions | |
| UniValue () | |
| UniValue (UniValue::VType initialType, const std::string &initialStr="") | |
| UniValue (uint64_t val_) | |
| UniValue (int64_t val_) | |
| UniValue (bool val_) | |
| UniValue (int val_) | |
| UniValue (double val_) | |
| UniValue (const std::string &val_) | |
| UniValue (const char *val_) | |
| void | clear () |
| bool | setNull () |
| bool | setBool (bool val) |
| bool | setNumStr (const std::string &val) |
| bool | setInt (uint64_t val) |
| bool | setInt (int64_t val) |
| bool | setInt (int val_) |
| bool | setFloat (double val) |
| bool | setStr (const std::string &val) |
| bool | setArray () |
| bool | setObject () |
| enum VType | getType () const |
| const std::string & | getValStr () const |
| bool | empty () const |
| size_t | size () const |
| bool | getBool () 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 |
| bool | push_back (const UniValue &val) |
| bool | push_back (const std::string &val_) |
| bool | push_back (const char *val_) |
| bool | push_back (uint64_t val_) |
| bool | push_back (int64_t val_) |
| bool | push_back (bool val_) |
| bool | push_back (int val_) |
| bool | push_back (double val_) |
| bool | push_backV (const std::vector< UniValue > &vec) |
| void | __pushKV (const std::string &key, const UniValue &val) |
| bool | pushKV (const std::string &key, const UniValue &val) |
| bool | pushKV (const std::string &key, const std::string &val_) |
| bool | pushKV (const std::string &key, const char *val_) |
| bool | pushKV (const std::string &key, int64_t val_) |
| bool | pushKV (const std::string &key, uint64_t val_) |
| bool | pushKV (const std::string &key, bool val_) |
| bool | pushKV (const std::string &key, int val_) |
| bool | pushKV (const std::string &key, double val_) |
| bool | pushKVs (const UniValue &obj) |
| std::string | write (unsigned int prettyIndent=0, unsigned int indentLevel=0) const |
| bool | read (const char *raw, size_t len) |
| bool | read (const char *raw) |
| bool | read (const std::string &rawStr) |
| const std::vector< std::string > & | getKeys () const |
| const std::vector< UniValue > & | getValues () const |
| bool | get_bool () const |
| const std::string & | get_str () const |
| int | get_int () const |
| int64_t | get_int64 () const |
| double | get_real () const |
| const UniValue & | get_obj () const |
| const UniValue & | get_array () const |
| enum VType | type () const |
Private Member Functions | |
| 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 |
Private Attributes | |
| UniValue::VType | typ |
| std::string | val |
| std::vector< std::string > | keys |
| std::vector< UniValue > | values |
Friends | |
| const UniValue & | find_value (const UniValue &obj, const std::string &name) |
Definition at line 17 of file univalue.h.
| enum UniValue::VType |
| Enumerator | |
|---|---|
| VNULL | |
| VOBJ | |
| VARR | |
| VSTR | |
| VNUM | |
| VBOOL | |
Definition at line 19 of file univalue.h.
|
inline |
Definition at line 21 of file univalue.h.
|
inline |
Definition at line 22 of file univalue.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void UniValue::__pushKV | ( | const std::string & | key, |
| const UniValue & | val | ||
| ) |
| bool UniValue::checkObject | ( | const std::map< std::string, UniValue::VType > & | memberTypes | ) | const |
Definition at line 179 of file univalue.cpp.
| void UniValue::clear | ( | ) |
|
inline |
|
inline |
Definition at line 73 of file univalue.h.
|
private |
| const UniValue & UniValue::get_array | ( | ) | const |
| bool UniValue::get_bool | ( | ) | const |
Definition at line 91 of file univalue_get.cpp.
| int UniValue::get_int | ( | ) | const |
Definition at line 105 of file univalue_get.cpp.
| int64_t UniValue::get_int64 | ( | ) | const |
Definition at line 115 of file univalue_get.cpp.
| const UniValue & UniValue::get_obj | ( | ) | const |
| double UniValue::get_real | ( | ) | const |
Definition at line 125 of file univalue_get.cpp.
| const std::string & UniValue::get_str | ( | ) | const |
Definition at line 98 of file univalue_get.cpp.
|
inline |
Definition at line 68 of file univalue.h.
| const std::vector< std::string > & UniValue::getKeys | ( | ) | const |
| void UniValue::getObjMap | ( | std::map< std::string, UniValue > & | kv | ) | const |
|
inline |
|
inline |
| const std::vector< UniValue > & UniValue::getValues | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const UniValue & UniValue::operator[] | ( | const std::string & | key | ) | const |
| const UniValue & UniValue::operator[] | ( | size_t | index | ) | const |
Definition at line 211 of file univalue.cpp.
|
inline |
|
inline |
|
inline |
| bool UniValue::push_back | ( | const UniValue & | val | ) |
Definition at line 108 of file univalue.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| bool UniValue::push_backV | ( | const std::vector< UniValue > & | vec | ) |
|
inline |
|
inline |
|
inline |
| bool UniValue::pushKV | ( | const std::string & | key, |
| const UniValue & | val | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| bool UniValue::pushKVs | ( | const UniValue & | obj | ) |
Definition at line 146 of file univalue.cpp.
|
inline |
Definition at line 151 of file univalue.h.
| bool UniValue::read | ( | const char * | raw, |
| size_t | len | ||
| ) |
Definition at line 259 of file univalue_read.cpp.
|
inline |
| bool UniValue::setArray | ( | ) |
Definition at line 94 of file univalue.cpp.
| bool UniValue::setBool | ( | bool | val | ) |
Definition at line 29 of file univalue.cpp.
| bool UniValue::setFloat | ( | double | val | ) |
Definition at line 75 of file univalue.cpp.
|
inline |
Definition at line 56 of file univalue.h.
| bool UniValue::setInt | ( | int64_t | val | ) |
| bool UniValue::setInt | ( | uint64_t | val | ) |
Definition at line 57 of file univalue.cpp.
| bool UniValue::setNull | ( | ) |
Definition at line 23 of file univalue.cpp.
| bool UniValue::setNumStr | ( | const std::string & | val | ) |
Definition at line 46 of file univalue.cpp.
| bool UniValue::setObject | ( | ) |
Definition at line 101 of file univalue.cpp.
| bool UniValue::setStr | ( | const std::string & | val | ) |
Definition at line 86 of file univalue.cpp.
|
inline |
|
inline |
Definition at line 179 of file univalue.h.
| std::string UniValue::write | ( | unsigned int | prettyIndent = 0, |
| unsigned int | indentLevel = 0 |
||
| ) | const |
Definition at line 28 of file univalue_write.cpp.
|
private |
Definition at line 67 of file univalue_write.cpp.
|
private |
Definition at line 89 of file univalue_write.cpp.
Definition at line 236 of file univalue.cpp.
|
private |
Definition at line 159 of file univalue.h.
|
private |
Definition at line 157 of file univalue.h.
|
private |
Definition at line 158 of file univalue.h.
|
private |
Definition at line 160 of file univalue.h.