Reference to a JSON element.
More...
#include <json.h>
Reference to a JSON element.
Definition at line 104 of file json.h.
◆ ~ref()
◆ ref() [1/5]
json::ref::ref |
( |
json & |
js | ) |
|
|
explicitprivate |
◆ ref() [2/5]
json::ref::ref |
( |
json & |
js, |
|
|
const char * |
keystr |
|
) |
| |
|
private |
◆ ref() [3/5]
json::ref::ref |
( |
const ref & |
base, |
|
|
const char * |
keystr |
|
) |
| |
|
private |
◆ ref() [4/5]
json::ref::ref |
( |
const ref & |
base, |
|
|
int |
index |
|
) |
| |
|
private |
◆ ref() [5/5]
json::ref::ref |
( |
const ref & |
base, |
|
|
const char * |
, |
|
|
const char * |
key_suffix |
|
) |
| |
|
private |
◆ operator+=() [1/2]
Braced-init-list support for nested objects.
Definition at line 237 of file json.cpp.
◆ operator+=() [2/2]
void json::ref::operator+= |
( |
std::initializer_list< initlist_value > |
ilist | ) |
|
Braced-init-list support for simple arrays.
Definition at line 249 of file json.cpp.
◆ operator=() [1/10]
void json::ref::operator= |
( |
bool |
value | ) |
|
◆ operator=() [2/10]
void json::ref::operator= |
( |
const char * |
value | ) |
|
◆ operator=() [3/10]
◆ operator=() [4/10]
void json::ref::operator= |
( |
const std::string & |
value | ) |
|
◆ operator=() [5/10]
void json::ref::operator= |
( |
int |
value | ) |
|
◆ operator=() [6/10]
void json::ref::operator= |
( |
long long |
value | ) |
|
◆ operator=() [7/10]
void json::ref::operator= |
( |
long |
value | ) |
|
◆ operator=() [8/10]
void json::ref::operator= |
( |
unsigned long long |
value | ) |
|
◆ operator=() [9/10]
void json::ref::operator= |
( |
unsigned long |
value | ) |
|
◆ operator=() [10/10]
void json::ref::operator= |
( |
unsigned |
value | ) |
|
◆ operator[]() [1/3]
ref json::ref::operator[] |
( |
const char * |
keystr | ) |
const |
|
inline |
Return reference to object element.
Definition at line 110 of file json.h.
◆ operator[]() [2/3]
ref json::ref::operator[] |
( |
const std::string & |
keystr | ) |
const |
|
inline |
Return reference to object element (std::string variant).
Definition at line 114 of file json.h.
◆ operator[]() [3/3]
ref json::ref::operator[] |
( |
int |
index | ) |
const |
|
inline |
Return reference to array element.
Definition at line 118 of file json.h.
◆ set_if_safe_le128()
bool json::ref::set_if_safe_le128 |
( |
const void * |
pvalue | ) |
|
◆ set_if_safe_uint128()
bool json::ref::set_if_safe_uint128 |
( |
uint64_t |
value_hi, |
|
|
uint64_t |
value_lo |
|
) |
| |
◆ set_if_safe_uint64()
bool json::ref::set_if_safe_uint64 |
( |
uint64_t |
value | ) |
|
◆ set_uint128()
void json::ref::set_uint128 |
( |
uint64_t |
value_hi, |
|
|
uint64_t |
value_lo |
|
) |
| |
◆ set_unsafe_le128()
void json::ref::set_unsafe_le128 |
( |
const void * |
pvalue | ) |
|
◆ set_unsafe_uint128()
void json::ref::set_unsafe_uint128 |
( |
uint64_t |
value_hi, |
|
|
uint64_t |
value_lo |
|
) |
| |
◆ set_unsafe_uint64()
void json::ref::set_unsafe_uint64 |
( |
uint64_t |
value | ) |
|
◆ with_suffix()
ref json::ref::with_suffix |
( |
const char * |
key_suffix | ) |
const |
|
inline |
Return reference to element with KEY_SUFFIX appended to last key.
Definition at line 135 of file json.h.
◆ json
◆ m_js
◆ m_path
The documentation for this class was generated from the following files: