mxnet
|
definition of JSON objects More...
#include <lib_api.h>
Public Member Functions | |
JsonVal () | |
JsonVal (JsonType t) | |
JsonVal (std::string s) | |
JsonVal (int n) | |
JsonVal (JsonType t, int n, std::string s) | |
bool | operator< (const JsonVal &o) const |
std::string | dump () const |
std::string | toString () const |
Static Public Member Functions | |
static JsonVal | parse (const std::string &json) |
static JsonVal | parse_string (const std::string &json, unsigned int *idx) |
static JsonVal | parse_num (const std::string &json, unsigned int *idx) |
static JsonVal | parse_list (const std::string &json, unsigned int *idx) |
static JsonVal | parse_map (const std::string &json, unsigned int *idx) |
static JsonVal | parse (const std::string &json, unsigned int *idx) |
Public Attributes | |
JsonType | type |
int | num |
std::string | str |
std::vector< JsonVal > | list |
std::map< JsonVal, JsonVal > | map |
definition of JSON objects
mxnet::ext::JsonVal::JsonVal | ( | ) |
|
explicit |
|
explicit |
|
explicit |
mxnet::ext::JsonVal::JsonVal | ( | JsonType | t, |
int | n, | ||
std::string | s | ||
) |
std::string mxnet::ext::JsonVal::dump | ( | ) | const |
bool mxnet::ext::JsonVal::operator< | ( | const JsonVal & | o | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
std::string mxnet::ext::JsonVal::toString | ( | ) | const |
std::vector<JsonVal> mxnet::ext::JsonVal::list |
int mxnet::ext::JsonVal::num |
std::string mxnet::ext::JsonVal::str |
JsonType mxnet::ext::JsonVal::type |