OmniSciDB
a5dc49c757
|
#include <json.h>
Public Member Functions | |
JSON () | |
JSON (const JSON &peer) | |
JSON (JSON &&)=default | |
JSON (const std::string &json) | |
JSON (const char *json) | |
JSON (const char *json, size_t len) | |
void | parse (const std::string &json) |
void | parse (const char *json) |
void | parse (const char *json, size_t len) |
std::string | stringify () const |
std::string | str () const |
bool | b1 () const |
uint64_t | u64 () const |
int64_t | i64 () const |
uint32_t | u32 () const |
int32_t | i32 () const |
uint16_t | u16 () const |
int16_t | i16 () const |
uint8_t | u8 () const |
int8_t | i8 () const |
double | d64 () const |
float | f32 () const |
bool | isString () const |
bool | isNumber () const |
bool | isBoolean () const |
bool | isObject () const |
bool | isArray () const |
bool | isNull () const |
bool | hasMember (const std::string &name) const |
operator std::string () const | |
operator bool () const | |
operator uint64_t () const | |
operator int64_t () const | |
operator uint32_t () const | |
operator int32_t () const | |
operator uint16_t () const | |
operator int16_t () const | |
operator uint8_t () const | |
operator int8_t () const | |
operator double () const | |
operator float () const | |
JSON & | operator= (const JSON &peer) |
JSON & | operator= (const std::string &item) |
JSON & | operator= (const char *item) |
JSON & | operator= (bool item) |
JSON & | operator= (int32_t item) |
JSON & | operator= (int64_t item) |
JSON & | operator= (uint32_t item) |
JSON & | operator= (uint64_t item) |
JSON | operator[] (const std::string &name) |
JSON | operator[] (const char *name) |
JSON | operator[] (const std::string &name) const |
JSON | operator[] (const char *name) const |
template<typename T > | |
JSON | operator[] (T index) |
JSON | operator[] (size_t index) |
template<typename T > | |
JSON | operator[] (T index) const |
JSON | operator[] (size_t index) const |
Private Member Functions | |
JSON (std::shared_ptr< rapidjson::Document > doc, rapidjson::Value *vptr, rapidjson::Document::AllocatorType &allo, const std::string &name) | |
Private Attributes | |
std::shared_ptr < rapidjson::Document > | doc_ |
rapidjson::Value * | vptr_ |
rapidjson::Document::AllocatorType & | allo_ |
const std::string | name_ |
Static Private Attributes | |
static std::string | kTypeNames [] |
Friends | |
bool | operator== (const JSON &json1, const JSON &json2) |
bool | operator!= (const JSON &json1, const JSON &json2) |
template<typename T > | |
bool | operator== (const JSON &json, const T &value) |
template<typename T > | |
bool | operator== (const T &value, const JSON &json) |
template<typename T > | |
bool | operator!= (const JSON &json, const T &value) |
template<typename T > | |
bool | operator!= (const T &value, const JSON &json) |
|
inline |
Definition at line 75 of file json.h.
Referenced by operator[]().
|
default |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 318 of file json.h.
Referenced by operator[]().
|
inline |
Definition at line 319 of file json.h.
References allo_, doc_, f(), JSON(), and vptr_.
|
inline |
|
inline |
|
inline |
Definition at line 347 of file json.h.
References operator[]().
|
inline |
|
inline |
Definition at line 362 of file json.h.
References operator[]().
|
inline |
Definition at line 365 of file json.h.
References allo_, doc_, JSON(), kTypeNames, name_, to_string(), and vptr_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 70 of file json.h.
Referenced by JSON(), operator=(), and operator[]().
|
private |
Definition at line 68 of file json.h.
Referenced by operator[](), and parse().
|
inlinestaticprivate |
Definition at line 378 of file json.h.
Referenced by operator bool(), operator double(), operator float(), operator int16_t(), operator int32_t(), operator int64_t(), operator int8_t(), operator std::string(), operator uint16_t(), operator uint32_t(), operator uint64_t(), operator uint8_t(), and operator[]().
|
private |
Definition at line 71 of file json.h.
Referenced by operator bool(), operator double(), operator float(), operator int16_t(), operator int32_t(), operator int64_t(), operator int8_t(), operator std::string(), operator uint16_t(), operator uint32_t(), operator uint64_t(), operator uint8_t(), and operator[]().
|
private |
Definition at line 69 of file json.h.
Referenced by hasMember(), isArray(), isBoolean(), isNull(), isNumber(), isObject(), isString(), JSON(), operator bool(), operator double(), operator float(), operator int16_t(), operator int32_t(), operator int64_t(), operator int8_t(), operator std::string(), operator uint16_t(), operator uint32_t(), operator uint64_t(), operator uint8_t(), heavyai::operator!=(), operator=(), heavyai::operator==(), operator[](), and stringify().