Uranus  1.0.1.0
Uranus is a GameEngine written in C++
Loading...
Searching...
No Matches
json11::Json Class Referencefinal
Collaboration diagram for json11::Json:
[legend]

Public Types

typedef std::vector< Jsonarray
 
typedef std::map< std::string, Jsonobject
 
typedef std::initializer_list< std::pair< std::string, Type > > shape
 
enum  Type {
  NUL , NUMBER , BOOL , STRING ,
  ARRAY , OBJECT
}
 

Public Member Functions

 Json (array &&values)
 
 Json (bool value)
 
 Json (const array &values)
 
 Json (const char *value)
 
template<class M , typename std::enable_if< std::is_constructible< std::string, decltype(std::declval< M >().begin() ->first)>::value &&std::is_constructible< Json, decltype(std::declval< M >().begin() ->second)>::value , int , ::type = 0>
 Json (const M &m)
 
 Json (const object &values)
 
 Json (const std::string &value)
 
template<class T , class = decltype(&T::to_json)>
 Json (const T &t)
 
template<class V , typename std::enable_if< std::is_constructible< Json, decltype(*std::declval< V >().begin())>::value , int , ::type = 0>
 Json (const V &v)
 
 Json (double value)
 
 Json (int value)
 
 Json (object &&values)
 
 Json (std::nullptr_t) noexcept
 
 Json (std::string &&value)
 
 Json (void *)=delete
 
const array & array_items () const
 
bool bool_value () const
 
std::string dump () const
 
void dump (std::string &out) const
 
bool has_shape (const shape &types, std::string &err) const
 
int int_value () const
 
bool is_array () const
 
bool is_bool () const
 
bool is_null () const
 
bool is_number () const
 
bool is_object () const
 
bool is_string () const
 
double number_value () const
 
const object & object_items () const
 
bool operator!= (const Json &rhs) const
 
bool operator< (const Json &rhs) const
 
bool operator<= (const Json &rhs) const
 
bool operator== (const Json &rhs) const
 
bool operator> (const Json &rhs) const
 
bool operator>= (const Json &rhs) const
 
const Jsonoperator[] (const std::string &key) const
 
const Jsonoperator[] (size_t i) const
 
const std::string & string_value () const
 
Type type () const
 

Static Public Member Functions

static Json parse (const char *in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
 
static Json parse (const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
 
static std::vector< Jsonparse_multi (const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
 
static std::vector< Jsonparse_multi (const std::string &in, std::string::size_type &parser_stop_pos, std::string &err, JsonParse strategy=JsonParse::STANDARD)
 

Private Attributes

std::shared_ptr< JsonValuem_ptr
 

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