KiCad PCB EDA Suite
json11::Value< tag, T > Class Template Reference
Inheritance diagram for json11::Value< tag, T >:

Protected Member Functions

 Value (const T &value)
 
 Value (T &&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 Attributes

const T m_value
 

Detailed Description

template<Json::Type tag, typename T>
class json11::Value< tag, T >

Definition at line 204 of file json11.cpp.

Constructor & Destructor Documentation

template<Json::Type tag, typename T>
json11::Value< tag, T >::Value ( const T &  value)
inlineexplicitprotected

Definition at line 209 of file json11.cpp.

209 : m_value( value ) {}
const T m_value
Definition: json11.cpp:229
template<Json::Type tag, typename T>
json11::Value< tag, T >::Value ( T &&  value)
inlineexplicitprotected

Definition at line 210 of file json11.cpp.

210 : m_value( move( value ) ) {}
const T m_value
Definition: json11.cpp:229

Member Function Documentation

template<Json::Type tag, typename T>
void json11::Value< tag, T >::dump ( string &  out) const
inlineoverrideprotected

Definition at line 230 of file json11.cpp.

230 { json11::dump( m_value, out ); }
const T m_value
Definition: json11.cpp:229
static void dump(NullStruct, string &out)
Definition: json11.cpp:53
template<Json::Type tag, typename T>
bool json11::Value< tag, T >::equals ( const JsonValue< tag, T > *  other) const
inlineoverrideprotected

Definition at line 219 of file json11.cpp.

220  {
221  return m_value == static_cast<const Value<tag, T>*>(other)->m_value;
222  }
const T m_value
Definition: json11.cpp:229
template<Json::Type tag, typename T>
bool json11::Value< tag, T >::less ( const JsonValue< tag, T > *  other) const
inlineoverrideprotected

Definition at line 224 of file json11.cpp.

225  {
226  return m_value < static_cast<const Value<tag, T>*>(other)->m_value;
227  }
const T m_value
Definition: json11.cpp:229
template<Json::Type tag, typename T>
Json::Type json11::Value< tag, T >::type ( ) const
inlineoverrideprotected

Definition at line 213 of file json11.cpp.

214  {
215  return tag;
216  }

Member Data Documentation

template<Json::Type tag, typename T>
const T json11::Value< tag, T >::m_value
protected

Definition at line 229 of file json11.cpp.


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