COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
json11::Value< tag, T > Class Template Reference
Inheritance diagram for json11::Value< tag, T >:
Collaboration diagram for json11::Value< tag, T >:

Protected Member Functions

 Value (const T &value)
 
 Value (T &&value)
 
Json::Type type () const override
 
bool equals (const JsonValue *other) const override
 
bool less (const JsonValue *other) const override
 
void dump (string &out) const override
 
- Protected Member Functions inherited from json11::JsonValue
virtual void dump (std::string &out) const =0
 
virtual double number_value () const
 
virtual int int_value () const
 
virtual bool bool_value () const
 
virtual const std::string & string_value () const
 
virtual const Json::arrayarray_items () const
 
virtual const Jsonoperator[] (size_t i) const
 
virtual const Json::objectobject_items () const
 
virtual const Jsonoperator[] (const std::string &key) const
 
virtual ~JsonValue ()
 

Protected Attributes

constm_value
 

Constructor & Destructor Documentation

template<Json::Type tag, typename T>
json11::Value< tag, T >::Value ( const T &  value)
inlineexplicitprotected
153 : m_value(value) {}
const T m_value
Definition: json11.cpp:169
template<Json::Type tag, typename T>
json11::Value< tag, T >::Value ( T &&  value)
inlineexplicitprotected
154 : m_value(move(value)) {}
const T m_value
Definition: json11.cpp:169

Member Function Documentation

template<Json::Type tag, typename T>
Json::Type json11::Value< tag, T >::type ( ) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

157  {
158  return tag;
159  }
template<Json::Type tag, typename T>
bool json11::Value< tag, T >::equals ( const JsonValue< tag, T > *  other) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

162  {
163  return m_value == static_cast<const Value<tag, T> *>(other)->m_value;
164  }
const T m_value
Definition: json11.cpp:169
template<Json::Type tag, typename T>
bool json11::Value< tag, T >::less ( const JsonValue< tag, T > *  other) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

165  {
166  return m_value < static_cast<const Value<tag, T> *>(other)->m_value;
167  }
const T m_value
Definition: json11.cpp:169
template<Json::Type tag, typename T>
void json11::Value< tag, T >::dump ( string &  out) const
inlineoverrideprotected
170 { json11::dump(m_value, out); }
static void dump(NullStruct, string &out)
Definition: json11.cpp:53
const T m_value
Definition: json11.cpp:169

Member Data Documentation

template<Json::Type tag, typename T>
const T json11::Value< tag, T >::m_value
protected

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