KiCad PCB EDA Suite
json11::JsonDouble Class Referencefinal
Inheritance diagram for json11::JsonDouble:
json11::Value< Json::NUMBER, double >

Public Member Functions

 JsonDouble (double value)
 

Protected Member Functions

Json::Type type () const override
 
void dump (string &out) const override
 

Protected Attributes

const double m_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
 

Detailed Description

Definition at line 233 of file json11.cpp.

Constructor & Destructor Documentation

json11::JsonDouble::JsonDouble ( double  value)
inlineexplicit

Definition at line 247 of file json11.cpp.

247 : Value( value ) {}

Member Function Documentation

void json11::Value< tag, double >::dump ( string &  out) const
inlineoverrideprotectedinherited

Definition at line 230 of file json11.cpp.

230 { json11::dump( m_value, out ); }
static void dump(NullStruct, string &out)
Definition: json11.cpp:53
bool json11::JsonDouble::equals ( const JsonValue *  other) const
inlineoverrideprivate

Definition at line 237 of file json11.cpp.

238  {
239  return m_value == other->number_value();
240  }
int json11::JsonDouble::int_value ( ) const
inlineoverrideprivate

Definition at line 236 of file json11.cpp.

236 { return static_cast<int>(m_value); }
bool json11::JsonDouble::less ( const JsonValue *  other) const
inlineoverrideprivate

Definition at line 241 of file json11.cpp.

242  {
243  return m_value < other->number_value();
244  }
double json11::JsonDouble::number_value ( ) const
inlineoverrideprivate

Definition at line 235 of file json11.cpp.

235 { return m_value; }
Json::Type json11::Value< tag, double >::type ( ) const
inlineoverrideprotectedinherited

Definition at line 213 of file json11.cpp.

214  {
215  return tag;
216  }

Member Data Documentation

const double json11::Value< tag, double >::m_value
protectedinherited

Definition at line 229 of file json11.cpp.


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