KiCad PCB EDA Suite
json11::JsonBoolean Class Referencefinal
Inheritance diagram for json11::JsonBoolean:
json11::Value< Json::BOOL, bool >

Public Member Functions

 JsonBoolean (bool value)
 

Protected Member Functions

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 Attributes

const bool m_value
 

Private Member Functions

bool bool_value () const override
 

Detailed Description

Definition at line 267 of file json11.cpp.

Constructor & Destructor Documentation

json11::JsonBoolean::JsonBoolean ( bool  value)
inlineexplicit

Definition at line 272 of file json11.cpp.

272 : Value( value ) {}
Value(const bool &value)
Definition: json11.cpp:209

Member Function Documentation

bool json11::JsonBoolean::bool_value ( ) const
inlineoverrideprivate

Definition at line 269 of file json11.cpp.

269 { return m_value; }
void json11::Value< tag, bool >::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::Value< tag, bool >::equals ( const JsonValue< Json::BOOL, bool > *  other) const
inlineoverrideprotectedinherited

Definition at line 219 of file json11.cpp.

220  {
221  return m_value == static_cast<const Value<tag, T>*>(other)->m_value;
222  }
bool json11::Value< tag, bool >::less ( const JsonValue< Json::BOOL, bool > *  other) const
inlineoverrideprotectedinherited

Definition at line 224 of file json11.cpp.

225  {
226  return m_value < static_cast<const Value<tag, T>*>(other)->m_value;
227  }
Json::Type json11::Value< tag, bool >::type ( ) const
inlineoverrideprotectedinherited

Definition at line 213 of file json11.cpp.

214  {
215  return tag;
216  }

Member Data Documentation

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

Definition at line 229 of file json11.cpp.


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