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

Public Member Functions

 JsonInt (int value)
 

Private Member Functions

double number_value () const override
 
int int_value () const override
 
bool equals (const JsonValue *other) const override
 
bool less (const JsonValue *other) const override
 

Additional Inherited Members

- Protected Member Functions inherited from json11::Value< Json::NUMBER, int >
 Value (const int &value)
 
 Value (int &&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 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 inherited from json11::Value< Json::NUMBER, int >
const int m_value
 

Constructor & Destructor Documentation

json11::JsonInt::JsonInt ( int  value)
inlineexplicit
188 : Value(value) {}
Value(const int &value)
Definition: json11.cpp:153

Member Function Documentation

double json11::JsonInt::number_value ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

183 { return m_value; }
const int m_value
Definition: json11.cpp:169
int json11::JsonInt::int_value ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

184 { return m_value; }
const int m_value
Definition: json11.cpp:169
bool json11::JsonInt::equals ( const JsonValue other) const
inlineoverrideprivatevirtual

Implements json11::JsonValue.

185 { return m_value == other->number_value(); }
const int m_value
Definition: json11.cpp:169
bool json11::JsonInt::less ( const JsonValue other) const
inlineoverrideprivatevirtual

Implements json11::JsonValue.

186 { return m_value < other->number_value(); }
const int m_value
Definition: json11.cpp:169

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