Conscience Core
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
picojson::value Class Reference

#include <picojson.h>

Classes

union  _storage
 

Public Types

typedef std::vector< valuearray
 
typedef std::map< std::string, valueobject
 

Public Member Functions

 value ()
 
 value (int type, bool)
 
 value (bool b)
 
 value (double n)
 
 value (const std::string &s)
 
 value (const array &a)
 
 value (const object &o)
 
 value (const char *s)
 
 value (const char *s, size_t len)
 
 ~value ()
 
 value (const value &x)
 
valueoperator= (const value &x)
 
void swap (value &x) PICOJSON_NOEXCEPT
 
template<typename T >
bool is () const
 
template<typename T >
const T & get () const
 
template<typename T >
T & get ()
 
template<typename T >
void set (const T &)
 
bool evaluate_as_boolean () const
 
const valueget (const size_t idx) const
 
const valueget (const std::string &key) const
 
valueget (const size_t idx)
 
valueget (const std::string &key)
 
bool contains (const size_t idx) const
 
bool contains (const std::string &key) const
 
std::string to_str () const
 
template<typename Iter >
void serialize (Iter os, bool prettify=false) const
 
std::string serialize (bool prettify=false) const
 
template<>
bool is () const
 

Protected Attributes

int type_
 
_storage u_
 

Member Typedef Documentation

◆ array

typedef std::vector<value> picojson::value::array

◆ object

typedef std::map<std::string, value> picojson::value::object

Constructor & Destructor Documentation

◆ value() [1/10]

picojson::value::value ( )
inline

◆ value() [2/10]

picojson::value::value ( int  type,
bool   
)
inline

◆ value() [3/10]

picojson::value::value ( bool  b)
inlineexplicit

◆ value() [4/10]

picojson::value::value ( double  n)
inlineexplicit

◆ value() [5/10]

picojson::value::value ( const std::string &  s)
inlineexplicit

◆ value() [6/10]

picojson::value::value ( const array a)
inlineexplicit

◆ value() [7/10]

picojson::value::value ( const object o)
inlineexplicit

◆ value() [8/10]

picojson::value::value ( const char *  s)
inlineexplicit

◆ value() [9/10]

picojson::value::value ( const char *  s,
size_t  len 
)
inline

◆ ~value()

picojson::value::~value ( )
inline

◆ value() [10/10]

picojson::value::value ( const value x)
inline

Member Function Documentation

◆ contains() [1/2]

bool picojson::value::contains ( const size_t  idx) const
inline

◆ contains() [2/2]

bool picojson::value::contains ( const std::string &  key) const
inline

◆ evaluate_as_boolean()

bool picojson::value::evaluate_as_boolean ( ) const
inline

◆ get() [1/6]

template<typename T >
T& picojson::value::get ( )

◆ get() [2/6]

template<typename T >
const T& picojson::value::get ( ) const

◆ get() [3/6]

value & picojson::value::get ( const size_t  idx)
inline

◆ get() [4/6]

const value & picojson::value::get ( const size_t  idx) const
inline

◆ get() [5/6]

value & picojson::value::get ( const std::string &  key)
inline

◆ get() [6/6]

const value & picojson::value::get ( const std::string &  key) const
inline

◆ is() [1/2]

template<typename T >
bool picojson::value::is ( ) const

◆ is() [2/2]

template<>
bool picojson::value::is ( ) const
inline

◆ operator=()

value & picojson::value::operator= ( const value x)
inline

◆ serialize() [1/2]

std::string picojson::value::serialize ( bool  prettify = false) const
inline

◆ serialize() [2/2]

template<typename Iter >
void picojson::value::serialize ( Iter  os,
bool  prettify = false 
) const

◆ set()

template<typename T >
void picojson::value::set ( const T &  )

◆ swap()

void picojson::value::swap ( value x)
inline

◆ to_str()

std::string picojson::value::to_str ( ) const
inline

Member Data Documentation

◆ type_

int picojson::value::type_
protected

◆ u_

_storage picojson::value::u_
protected

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