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

Public Member Functions

 JsonArray (const Json::array &value)
 
 JsonArray (Json::array &&value)
 

Private Member Functions

const Json::arrayarray_items () const override
 
const Jsonoperator[] (size_t i) const override
 

Additional Inherited Members

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

Constructor & Destructor Documentation

json11::JsonArray::JsonArray ( const Json::array value)
inlineexplicit
208 : Value(value) {}
Value(const Json::array &value)
Definition: json11.cpp:153
json11::JsonArray::JsonArray ( Json::array &&  value)
inlineexplicit
209 : Value(move(value)) {}
Value(const Json::array &value)
Definition: json11.cpp:153

Member Function Documentation

const Json::array& json11::JsonArray::array_items ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

205 { return m_value; }
const Json::array m_value
Definition: json11.cpp:169
const Json & json11::JsonArray::operator[] ( size_t  i) const
overrideprivatevirtual

Reimplemented from json11::JsonValue.

302  {
303  if (i >= m_value.size()) return static_null();
304  else return m_value[i];
305 }
static const Json & static_null()
Definition: json11.cpp:243
size_t i
Definition: json11.cpp:361
const Json::array m_value
Definition: json11.cpp:169

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