Skip to content

Class json::JSON

ClassList > json > JSON

Inherited by the following classes: TempLat::FileToJSON

Classes

Type Name
class JSONConstWrapper <typename Container>
class JSONWrapper <typename Container>

Public Types

Type Name
enum Class

Public Functions

Type Name
JSONWrapper< deque< JSON > > ArrayRange ()
JSONConstWrapper< deque< JSON > > ArrayRange () const
void EraseByValue (T val)
bool IsNull () const
Functions for getting primitives from the JSON object.
JSON ()
JSON (initializer_list< JSON > list)
JSON (JSON && other)
JSON (const JSON & other)
JSON (T b, typename enable_if< is_same< T, bool >::value >::type *=0)
JSON (T i, typename enable_if< is_integral< T >::value &&!is_same< T, bool >::value >::type *=0)
JSON (T f, typename enable_if< is_floating_point< T >::value >::type *=0)
JSON (T s, typename enable_if< is_convertible< T, string >::value >::type *=0)
JSON (std::nullptr_t)
Class JSONType () const
JSONWrapper< map< string, JSON > > ObjectRange ()
JSONConstWrapper< map< string, JSON > > ObjectRange () const
bool ToBool () const
bool ToBool (bool & ok) const
double ToFloat () const
double ToFloat (bool & ok) const
long ToInt () const
long ToInt (bool & ok) const
string ToString () const
string ToString (bool & ok) const
std::enable_if< std::is_floating_point< T >::value, T >::type Value ()
std::enable_if< std::is_integral< T >::value, T >::type Value ()
std::enable_if< std::is_same< T, bool >::value, T >::type Value ()
std::enable_if< std::is_same< T, std::string >::value, T >::type Value ()
bool ValueAsBoolean () const
double ValueAsFloating () const
long long int ValueAsIntegral () const
string ValueAsString () const
void append (T arg)
void append (T arg, U... args)
JSON & at (const string & key)
const JSON & at (const string & key) const
JSON & at (unsigned index)
const JSON & at (unsigned index) const
string dump (int depth=1, string tab=" ") const
bool hasKey (const string & key) const
int length () const
JSON & operator= (JSON && other)
JSON & operator= (const JSON & other)
enable_if< is_same< T, bool >::value, JSON & >::type operator= (T b)
enable_if< is_integral< T >::value &&!is_same< T, bool >::value, JSON & >::type operator= (T i)
enable_if< is_floating_point< T >::value, JSON & >::type operator= (T f)
enable_if< is_convertible< T, string >::value, JSON & >::type operator= (T s)
JSON & operator[] (const string & key)
JSON & operator[] (unsigned index)
int size () const
int size_nonnull () const
~JSON ()

Public Static Functions

Type Name
const char * ClassString (Class c)
JSON Load (const string & str)
JSON Make (Class type)

Public Types Documentation

enum Class

enum json::JSON::Class {
    Null,
    Object,
    Array,
    String,
    Floating,
    Integral,
    Boolean
};

Public Functions Documentation

function ArrayRange [1/2]

inline JSONWrapper < deque< JSON > > json::JSON::ArrayRange () 

function ArrayRange [2/2]

inline JSONConstWrapper < deque< JSON > > json::JSON::ArrayRange () const

function EraseByValue

template<typename T>
inline void json::JSON::EraseByValue (
    T val
) 

function IsNull

Functions for getting primitives from the JSON object.

inline bool json::JSON::IsNull () const


function JSON [1/9]

inline json::JSON::JSON () 

function JSON [2/9]

inline json::JSON::JSON (
    initializer_list< JSON > list
) 

function JSON [3/9]

inline json::JSON::JSON (
    JSON && other
) 

function JSON [4/9]

inline json::JSON::JSON (
    const JSON & other
) 

function JSON [5/9]

template<typename T>
inline json::JSON::JSON (
    T b,
    typename enable_if< is_same< T, bool >::value >::type *=0
) 

function JSON [6/9]

template<typename T>
inline json::JSON::JSON (
    T i,
    typename enable_if< is_integral< T >::value &&!is_same< T, bool >::value >::type *=0
) 

function JSON [7/9]

template<typename T>
inline json::JSON::JSON (
    T f,
    typename enable_if< is_floating_point< T >::value >::type *=0
) 

function JSON [8/9]

template<typename T>
inline json::JSON::JSON (
    T s,
    typename enable_if< is_convertible< T, string >::value >::type *=0
) 

function JSON [9/9]

inline json::JSON::JSON (
    std::nullptr_t
) 

function JSONType

inline Class json::JSON::JSONType () const

function ObjectRange [1/2]

inline JSONWrapper < map< string, JSON > > json::JSON::ObjectRange () 

function ObjectRange [2/2]

inline JSONConstWrapper < map< string, JSON > > json::JSON::ObjectRange () const

function ToBool [1/2]

inline bool json::JSON::ToBool () const

function ToBool [2/2]

inline bool json::JSON::ToBool (
    bool & ok
) const

function ToFloat [1/2]

inline double json::JSON::ToFloat () const

function ToFloat [2/2]

inline double json::JSON::ToFloat (
    bool & ok
) const

function ToInt [1/2]

inline long json::JSON::ToInt () const

function ToInt [2/2]

inline long json::JSON::ToInt (
    bool & ok
) const

function ToString [1/2]

inline string json::JSON::ToString () const

function ToString [2/2]

inline string json::JSON::ToString (
    bool & ok
) const

function Value [1/4]

template<typename T>
inline std::enable_if< std::is_floating_point< T >::value, T >::type json::JSON::Value () 

function Value [2/4]

template<typename T>
inline std::enable_if< std::is_integral< T >::value, T >::type json::JSON::Value () 

function Value [3/4]

template<typename T>
inline std::enable_if< std::is_same< T, bool >::value, T >::type json::JSON::Value () 

function Value [4/4]

template<typename T>
inline std::enable_if< std::is_same< T, std::string >::value, T >::type json::JSON::Value () 

function ValueAsBoolean

inline bool json::JSON::ValueAsBoolean () const

function ValueAsFloating

inline double json::JSON::ValueAsFloating () const

function ValueAsIntegral

inline long long int json::JSON::ValueAsIntegral () const

function ValueAsString

inline string json::JSON::ValueAsString () const

function append [1/2]

template<typename T>
inline void json::JSON::append (
    T arg
) 

function append [2/2]

template<typename T, typename... U>
inline void json::JSON::append (
    T arg,
    U... args
) 

function at [1/4]

inline JSON & json::JSON::at (
    const string & key
) 

function at [2/4]

inline const JSON & json::JSON::at (
    const string & key
) const

function at [3/4]

inline JSON & json::JSON::at (
    unsigned index
) 

function at [4/4]

inline const JSON & json::JSON::at (
    unsigned index
) const

function dump

inline string json::JSON::dump (
    int depth=1,
    string tab="  "
) const

function hasKey

inline bool json::JSON::hasKey (
    const string & key
) const

function length

inline int json::JSON::length () const

function operator=

inline JSON & json::JSON::operator= (
    JSON && other
) 

function operator=

inline JSON & json::JSON::operator= (
    const JSON & other
) 

function operator=

template<typename T>
inline enable_if< is_same< T, bool >::value, JSON & >::type json::JSON::operator= (
    T b
) 

function operator=

template<typename T>
inline enable_if< is_integral< T >::value &&!is_same< T, bool >::value, JSON & >::type json::JSON::operator= (
    T i
) 

function operator=

template<typename T>
inline enable_if< is_floating_point< T >::value, JSON & >::type json::JSON::operator= (
    T f
) 

function operator=

template<typename T>
inline enable_if< is_convertible< T, string >::value, JSON & >::type json::JSON::operator= (
    T s
) 

function operator[]

inline JSON & json::JSON::operator[] (
    const string & key
) 

function operator[]

inline JSON & json::JSON::operator[] (
    unsigned index
) 

function size

inline int json::JSON::size () const

function size_nonnull

inline int json::JSON::size_nonnull () const

function ~JSON

inline json::JSON::~JSON () 

Public Static Functions Documentation

function ClassString

static inline const char * json::JSON::ClassString (
    Class c
) 

function Load

static inline JSON json::JSON::Load (
    const string & str
) 

function Make

static inline JSON json::JSON::Make (
    Class type
) 

Friends Documentation

friend operator<<

std::ostream & json::JSON::operator<< (
    std::ostream & os,
    const JSON & json
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/json/simplejson.h