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

Public Member Functions

 JsonInt (int value)
 

Protected Member Functions

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

Protected Attributes

const int 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 250 of file json11.cpp.

Constructor & Destructor Documentation

json11::JsonInt::JsonInt ( int  value)
inlineexplicit

Definition at line 264 of file json11.cpp.

264 : Value( value ) {}

Member Function Documentation

void json11::Value< tag, int >::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::JsonInt::equals ( const JsonValue *  other) const
inlineoverrideprivate

Definition at line 254 of file json11.cpp.

255  {
256  return m_value == other->number_value();
257  }
int json11::JsonInt::int_value ( ) const
inlineoverrideprivate

Definition at line 253 of file json11.cpp.

253 { return m_value; }
bool json11::JsonInt::less ( const JsonValue *  other) const
inlineoverrideprivate

Definition at line 258 of file json11.cpp.

259  {
260  return m_value < other->number_value();
261  }
double json11::JsonInt::number_value ( ) const
inlineoverrideprivate

Definition at line 252 of file json11.cpp.

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

Definition at line 213 of file json11.cpp.

214  {
215  return tag;
216  }

Member Data Documentation

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

Definition at line 229 of file json11.cpp.


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