souffle  2.0.2-371-g6315b36
Protected Member Functions | Protected Attributes
json11::Value< tag, T > Class Template Reference

#include <json11.h>

Inheritance diagram for json11::Value< tag, T >:
Inheritance graph
Collaboration diagram for json11::Value< tag, T >:
Collaboration graph

Protected Member Functions

void dump (std::string &out) const override
 
bool equals (const JsonValue *other) const override
 
bool less (const JsonValue *other) const override
 
Json::Type type () const override
 
 Value (T value)
 
- Protected Member Functions inherited from json11::JsonValue
virtual const Json::arrayarray_items () const
 
virtual bool bool_value () const
 
virtual int int_value () const
 
virtual long long long_value () const
 
virtual double number_value () const
 
virtual const Json::objectobject_items () const
 
virtual const Jsonoperator[] (const std::string &key) const
 
virtual const Jsonoperator[] (size_t i) const
 
virtual const std::string & string_value () const
 
virtual ~JsonValue ()=default
 

Protected Attributes

const T m_value
 

Detailed Description

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

Definition at line 379 of file json11.h.

Constructor & Destructor Documentation

◆ Value()

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

Definition at line 382 of file json11.h.

382 : m_value(std::move(value)) {}

Member Function Documentation

◆ dump()

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

Implements json11::JsonValue.

Definition at line 398 of file json11.h.

398  {
399  json11::dump(m_value, out);
400  }

◆ equals()

template<Json::Type tag, typename T >
bool json11::Value< tag, T >::equals ( const JsonValue< tag, T > *  other) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

Definition at line 390 of file json11.h.

390  {
391  return m_value == static_cast<const Value<tag, T>*>(other)->m_value;
392  }

◆ less()

template<Json::Type tag, typename T >
bool json11::Value< tag, T >::less ( const JsonValue< tag, T > *  other) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

Definition at line 393 of file json11.h.

393  {
394  return m_value < static_cast<const Value<tag, T>*>(other)->m_value;
395  }

◆ type()

template<Json::Type tag, typename T >
Json::Type json11::Value< tag, T >::type ( ) const
inlineoverrideprotectedvirtual

Implements json11::JsonValue.

Definition at line 385 of file json11.h.

385  {
386  return tag;
387  }

Field Documentation

◆ m_value

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

Definition at line 397 of file json11.h.


The documentation for this class was generated from the following file:
json11::Value::m_value
const T m_value
Definition: json11.h:397
json11::dump
static void dump(NullStruct, std::string &out)
Definition: json11.h:285