mxnet
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mxnet::ext::JsonVal Struct Reference

definition of JSON objects More...

#include <lib_api.h>

Collaboration diagram for mxnet::ext::JsonVal:
Collaboration graph

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< JsonVallist
 
std::map< JsonVal, JsonValmap
 

Detailed Description

definition of JSON objects

Constructor & Destructor Documentation

◆ JsonVal() [1/5]

mxnet::ext::JsonVal::JsonVal ( )

◆ JsonVal() [2/5]

mxnet::ext::JsonVal::JsonVal ( JsonType  t)
explicit

◆ JsonVal() [3/5]

mxnet::ext::JsonVal::JsonVal ( std::string  s)
explicit

◆ JsonVal() [4/5]

mxnet::ext::JsonVal::JsonVal ( int  n)
explicit

◆ JsonVal() [5/5]

mxnet::ext::JsonVal::JsonVal ( JsonType  t,
int  n,
std::string  s 
)

Member Function Documentation

◆ dump()

std::string mxnet::ext::JsonVal::dump ( ) const

◆ operator<()

bool mxnet::ext::JsonVal::operator< ( const JsonVal o) const

◆ parse() [1/2]

static JsonVal mxnet::ext::JsonVal::parse ( const std::string &  json)
static

◆ parse() [2/2]

static JsonVal mxnet::ext::JsonVal::parse ( const std::string &  json,
unsigned int *  idx 
)
static

◆ parse_list()

static JsonVal mxnet::ext::JsonVal::parse_list ( const std::string &  json,
unsigned int *  idx 
)
static

◆ parse_map()

static JsonVal mxnet::ext::JsonVal::parse_map ( const std::string &  json,
unsigned int *  idx 
)
static

◆ parse_num()

static JsonVal mxnet::ext::JsonVal::parse_num ( const std::string &  json,
unsigned int *  idx 
)
static

◆ parse_string()

static JsonVal mxnet::ext::JsonVal::parse_string ( const std::string &  json,
unsigned int *  idx 
)
static

◆ toString()

std::string mxnet::ext::JsonVal::toString ( ) const

Member Data Documentation

◆ list

std::vector<JsonVal> mxnet::ext::JsonVal::list

◆ map

std::map<JsonVal, JsonVal> mxnet::ext::JsonVal::map

◆ num

int mxnet::ext::JsonVal::num

◆ str

std::string mxnet::ext::JsonVal::str

◆ type

JsonType mxnet::ext::JsonVal::type

The documentation for this struct was generated from the following file: