LeviLamina
Loading...
Searching...
No Matches
Json::Value Class Reference

Classes

class  CZString
 
struct  CZStringCompare
 
union  ValueHolder
 

Public Types

using Members = ::std::vector<::std::string>
 
using iterator = ::Json::ValueIterator
 
using const_iterator = ::Json::ValueConstIterator
 
using UInt = uint
 
using Int = int
 
using UInt64 = uint64
 
using Int64 = int64
 
using LargestInt = int64
 
using LargestUInt = uint64
 
using ArrayIndex = uint
 
using ObjectValues = ::std::map<::Json::Value::CZString, ::Json::Value, ::Json::Value::CZStringCompare>
 
using ArrayValues = ::std::vector<::Json::Value*>
 

Public Member Functions

ValueType type () const
 
 operator bool () const
 
bool isNull () const
 
bool isBool () const
 
bool isInt () const
 
bool isUInt () const
 
bool isInt64 () const
 
bool isUInt64 () const
 
bool isIntegral () const
 
bool isDouble () const
 
bool isNumeric () const
 
bool isString () const
 
bool isArray () const
 
bool isObject () const
 
Int64 asInt64 (Int64 defaultValue=0) const
 
UInt64 asUInt64 (UInt64 defaultValue=0) const
 
Valueoperator[] (char const *key)
 
Valueoperator[] (int key)
 
Value const & operator[] (uint key) const
 
 Value (Int value)
 
 Value (UInt value)
 
 Value (Int64 value)
 
 Value (UInt64 value)
 
 Value (double value)
 
 Value (bool value)
 
MCAPI Value (::Json::Value const &other)
 
MCAPI Value (::Json::Value &&other)
 
MCAPI Value (::Json::ValueType type=NullValue)
 
MCAPI Value (char const *value)
 
MCAPI Value (::std::string const &value)
 
MCAPI::Json::Value & _resolveReference (char const *key)
 
MCAPI::Json::Value & append (::Json::Value &&value)
 
MCAPI::Json::Value & append (::Json::Value const &value)
 
MCAPI bool asBool (bool defaultValue) const
 
MCAPI double asDouble (double defaultValue) const
 
MCAPI float asFloat (float defaultValue) const
 
MCAPI int asInt (int defaultValue) const
 
MCAPI::std::string asString (::std::string const &defaultValue) const
 
MCAPI uint asUInt (uint defaultValue) const
 
MCFOLD::Json::ValueConstIterator begin () const
 
MCAPI::Json::ValueIterator begin ()
 
MCAPI void clear ()
 
MCAPI bool empty () const
 
MCAPI::Json::ValueConstIterator end () const
 
MCFOLD::Json::ValueIterator end ()
 
MCAPI::Json::Value get (::std::string const &key, ::Json::Value const &defaultValue) const
 
MCAPI::Json::Value get (char const *key, ::Json::Value const &defaultValue) const
 
MCAPI ::std::vector<::std::string > getMemberNames () const
 
MCAPI bool isConvertibleTo (::Json::ValueType other) const
 
MCAPI bool isMember (char const *key) const
 
MCAPI bool isMember (::std::string const &key) const
 
MCAPI bool operator!= (::Json::Value const &other) const
 
MCAPI bool operator< (::Json::Value const &other) const
 
MCAPI::Json::Value & operator= (::Json::Value const &other)
 
MCAPI::Json::Value & operator= (::Json::Value &&other)
 
MCAPI bool operator== (::Json::Value const &other) const
 
MCAPI::Json::Value const & operator[] (int index) const
 
MCAPI::Json::Value const & operator[] (char const *key) const
 
MCAPI::Json::Value const & operator[] (::std::string const &key) const
 
MCAPI::Json::Value & operator[] (uint index)
 
MCAPI::Json::Value & operator[] (::std::string const &key)
 
MCAPI::Json::Value removeMember (char const *key)
 
MCAPI void resize (uint newSize)
 
MCAPI uint size () const
 
MCAPI::std::string toStyledString () const
 
MCAPI void * $ctor (::Json::Value const &other)
 
MCAPI void * $ctor (::Json::Value &&other)
 
MCAPI void * $ctor (::Json::ValueType type)
 
MCAPI void * $ctor (char const *value)
 
MCAPI void * $ctor (::std::string const &value)
 
MCAPI void $dtor ()
 

Static Public Member Functions

static bool IsIntegral (double d)
 
static MCAPI ::Json::Value const & null ()
 

Public Attributes

::Json::Value::ValueHolder value_
 
::Json::ValueType type_
 

Static Public Attributes

static constexpr LargestInt minLargestInt = LargestInt(~(LargestUInt(-1) / 2))
 
static constexpr LargestInt maxLargestInt = LargestInt(LargestUInt(-1) / 2)
 
static constexpr LargestUInt maxLargestUInt = LargestUInt(-1)
 
static constexpr Int minInt = Int(~(UInt(-1) / 2))
 
static constexpr Int maxInt = Int(UInt(-1) / 2)
 
static constexpr UInt maxUInt = UInt(-1)
 
static constexpr Int64 minInt64 = Int64(~(UInt64(-1) / 2))
 
static constexpr Int64 maxInt64 = Int64(UInt64(-1) / 2)
 
static constexpr UInt64 maxUInt64 = UInt64(-1)
 
static constexpr UInt defaultRealPrecision = 17
 
static constexpr double maxUInt64AsDouble = 18446744073709551615.0
 

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