Apache Mesos
Classes | Public Member Functions | Friends | List of all members
JSON::Value Struct Reference

#include <json.hpp>

Inheritance diagram for JSON::Value:

Public Member Functions

 Value ()
 
 Value (bool value)
 
 Value (char *value)
 
 Value (const char *value)
 
template<typename T >
 Value (const T &value, typename std::enable_if< std::is_arithmetic< T >::value, int >::type=0)
 
template<typename T >
 Value (const T &value, typename std::enable_if<!std::is_arithmetic< T >::value, int >::type=0)
 
template<typename T >
bool is () const
 
template<typename T >
const T & as () const
 
bool contains (const Value &other) const
 
template<>
bool is () const
 
template<>
const Valueas () const
 

Friends

struct Comparator
 

Constructor & Destructor Documentation

JSON::Value::Value ( )
inline
JSON::Value::Value ( bool  value)
inline
JSON::Value::Value ( char *  value)
inline
JSON::Value::Value ( const char *  value)
inline
template<typename T >
JSON::Value::Value ( const T &  value,
typename std::enable_if< std::is_arithmetic< T >::value, int >::type  = 0 
)
inline
template<typename T >
JSON::Value::Value ( const T &  value,
typename std::enable_if<!std::is_arithmetic< T >::value, int >::type  = 0 
)
inline

Member Function Documentation

template<typename T >
const T & JSON::Value::as ( ) const
template<>
const Value& JSON::Value::as ( ) const
inline
bool JSON::Value::contains ( const Value other) const
inline
template<typename T >
bool JSON::Value::is ( ) const
template<>
bool JSON::Value::is ( ) const
inline

Friends And Related Function Documentation

friend struct Comparator
friend

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