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

Public Member Functions

 JsonDouble (double 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, double >
 Value (const double &value)
 
 Value (double &&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, double >
const double m_value
 

Constructor & Destructor Documentation

json11::JsonDouble::JsonDouble ( double  value)
inlineexplicit
179 : Value(value) {}
Value(const double &value)
Definition: json11.cpp:153

Member Function Documentation

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

Reimplemented from json11::JsonValue.

174 { return m_value; }
const double m_value
Definition: json11.cpp:169
int json11::JsonDouble::int_value ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

175 { return static_cast<int>(m_value); }
const double m_value
Definition: json11.cpp:169
bool json11::JsonDouble::equals ( const JsonValue other) const
inlineoverrideprivatevirtual

Implements json11::JsonValue.

176 { return m_value == other->number_value(); }
const double m_value
Definition: json11.cpp:169
bool json11::JsonDouble::less ( const JsonValue other) const
inlineoverrideprivatevirtual

Implements json11::JsonValue.

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

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