|
OpenNN
Open-source neural networks library
|
#include <json.h>
Public Types | |
| enum class | Kind { Null , Bool , Number , String , Array , Object } |
Public Member Functions | |
| Json ()=default | |
| Json (bool b) | |
| Json (int i) | |
| Json (long i) | |
| Json (long long i) | |
| Json (unsigned int i) | |
| Json (unsigned long i) | |
| Json (unsigned long long i) | |
| Json (double d) | |
| Json (float d) | |
| Json (const char *s) | |
| Json (const string &s) | |
| bool | is_null () const |
| bool | is_bool () const |
| bool | is_number () const |
| bool | is_string () const |
| bool | is_array () const |
| bool | is_object () const |
| bool | has (const string &key) const |
| const Json * | find (const string &key) const |
| const Json * | first_child (const string &key) const |
| const Json & | at (const string &key) const |
| Json & | operator[] (const string &key) |
| Json & | set (const string &key, Json value) |
| void | push_back (Json value) |
| string | as_string () const |
| long | as_long () const |
| double | as_double () const |
| bool | as_bool () const |
| string | dump (int indent=2) const |
Static Public Member Functions | |
| static Json | make_object () |
| static Json | make_array () |
| static Json | parse (const string &text) |
Public Attributes | |
| Kind | kind = Kind::Null |
| bool | bool_value = false |
| double | number_value = 0.0 |
| string | string_value |
| vector< Json > | array_value |
| vector< pair< string, Json > > | object_value |
|
strong |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
inlinenodiscard |
|
nodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
staticnodiscard |
|
staticnodiscard |
| Json & opennn::Json::operator[] | ( | const string & | key | ) |
|
staticnodiscard |
| void opennn::Json::push_back | ( | Json | value | ) |
| vector<Json> opennn::Json::array_value |
| bool opennn::Json::bool_value = false |
| Kind opennn::Json::kind = Kind::Null |
| double opennn::Json::number_value = 0.0 |
| vector<pair<string, Json> > opennn::Json::object_value |
| string opennn::Json::string_value |