COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
json11::JsonObject Class Referencefinal
Inheritance diagram for json11::JsonObject:
Collaboration diagram for json11::JsonObject:

Public Member Functions

 JsonObject (const Json::object &value)
 
 JsonObject (Json::object &&value)
 

Private Member Functions

const Json::objectobject_items () const override
 
const Jsonoperator[] (const string &key) const override
 

Additional Inherited Members

- Protected Member Functions inherited from json11::Value< Json::OBJECT, Json::object >
 Value (const Json::object &value)
 
 Value (Json::object &&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 Jsonoperator[] (const std::string &key) const
 
virtual ~JsonValue ()
 
- Protected Attributes inherited from json11::Value< Json::OBJECT, Json::object >
const Json::object m_value
 

Constructor & Destructor Documentation

json11::JsonObject::JsonObject ( const Json::object value)
inlineexplicit
216 : Value(value) {}
Value(const Json::object &value)
Definition: json11.cpp:153
json11::JsonObject::JsonObject ( Json::object &&  value)
inlineexplicit
217 : Value(move(value)) {}
Value(const Json::object &value)
Definition: json11.cpp:153

Member Function Documentation

const Json::object& json11::JsonObject::object_items ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

213 { return m_value; }
const Json::object m_value
Definition: json11.cpp:169
const Json & json11::JsonObject::operator[] ( const string &  key) const
overrideprivate
298  {
299  auto iter = m_value.find(key);
300  return (iter == m_value.end()) ? static_null() : iter->second;
301 }
static const Json & static_null()
Definition: json11.cpp:243
const Json::object m_value
Definition: json11.cpp:169

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