ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
a JSON value More...
Public Member Functions | |
json_value ()=default | |
default constructor (for null values) | |
json_value (boolean_t v) noexcept | |
constructor for booleans | |
json_value (number_integer_t v) noexcept | |
constructor for numbers (integer) | |
json_value (number_unsigned_t v) noexcept | |
constructor for numbers (unsigned) | |
json_value (number_float_t v) noexcept | |
constructor for numbers (floating-point) | |
json_value (value_t t) | |
constructor for empty values of a given type | |
json_value (const string_t &value) | |
constructor for strings | |
json_value (string_t &&value) | |
constructor for rvalue strings | |
json_value (const object_t &value) | |
constructor for objects | |
json_value (object_t &&value) | |
constructor for rvalue objects | |
json_value (const array_t &value) | |
constructor for arrays | |
json_value (array_t &&value) | |
constructor for rvalue arrays | |
void | destroy (value_t t) noexcept |
Public Attributes | |
object_t * | object |
object (stored with pointer to save storage) | |
array_t * | array |
array (stored with pointer to save storage) | |
string_t * | string |
string (stored with pointer to save storage) | |
boolean_t | boolean |
boolean | |
number_integer_t | number_integer |
number (integer) | |
number_unsigned_t | number_unsigned |
number (unsigned integer) | |
number_float_t | number_float |
number (floating-point) | |
a JSON value
The actual storage for a JSON value of the basic_json class. This union combines the different storage types for the JSON value types defined in value_t.
JSON type | value_t type | used type |
---|---|---|
object | object | pointer to object_t |
array | array | pointer to array_t |
string | string | pointer to string_t |
boolean | boolean | boolean_t |
number | number_integer | number_integer_t |
number | number_unsigned | number_unsigned_t |
number | number_float | number_float_t |
null | null | no value is stored |
Definition at line 15414 of file json.hpp.
View newest version in sPHENIX GitHub at line 15414 of file json.hpp
|
default |
default constructor (for null values)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
constructor for empty values of a given type
Definition at line 15442 of file json.hpp.
View newest version in sPHENIX GitHub at line 15442 of file json.hpp
References JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 15542 of file json.hpp.
View newest version in sPHENIX GitHub at line 15542 of file json.hpp
References array, nlohmann::basic_json::is_array(), nlohmann::basic_json::is_object(), it, nlohmann::basic_json::m_value, object, and t.
array_t* nlohmann::basic_json::json_value::array |
boolean_t nlohmann::basic_json::json_value::boolean |
boolean
Definition at line 15423 of file json.hpp.
View newest version in sPHENIX GitHub at line 15423 of file json.hpp
Referenced by nlohmann::basic_json::basic_json().
number_float_t nlohmann::basic_json::json_value::number_float |
number (floating-point)
Definition at line 15429 of file json.hpp.
View newest version in sPHENIX GitHub at line 15429 of file json.hpp
Referenced by nlohmann::basic_json::basic_json().
number_integer_t nlohmann::basic_json::json_value::number_integer |
number (integer)
Definition at line 15425 of file json.hpp.
View newest version in sPHENIX GitHub at line 15425 of file json.hpp
Referenced by nlohmann::basic_json::basic_json().
number_unsigned_t nlohmann::basic_json::json_value::number_unsigned |
number (unsigned integer)
Definition at line 15427 of file json.hpp.
View newest version in sPHENIX GitHub at line 15427 of file json.hpp
Referenced by nlohmann::basic_json::basic_json().
object_t* nlohmann::basic_json::json_value::object |
string_t* nlohmann::basic_json::json_value::string |
string (stored with pointer to save storage)
Definition at line 15421 of file json.hpp.
View newest version in sPHENIX GitHub at line 15421 of file json.hpp
Referenced by nlohmann::basic_json::basic_json().