souffle  2.0.2-371-g6315b36
Public Member Functions | Private Member Functions
json11::JsonBoolean Class Referencefinal

#include <json11.h>

Inheritance diagram for json11::JsonBoolean:
Inheritance graph
Collaboration diagram for json11::JsonBoolean:
Collaboration graph

Public Member Functions

 JsonBoolean (bool value)
 

Private Member Functions

bool bool_value () const override
 

Additional Inherited Members

- Protected Member Functions inherited from json11::Value< Json::BOOL, bool >
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 (bool value)
 
- Protected Member Functions inherited from json11::JsonValue
virtual const Json::arrayarray_items () 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 Json::Type type () const =0
 
virtual ~JsonValue ()=default
 
- Protected Attributes inherited from json11::Value< Json::BOOL, bool >
const bool m_value
 

Detailed Description

Definition at line 445 of file json11.h.

Constructor & Destructor Documentation

◆ JsonBoolean()

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

Definition at line 451 of file json11.h.

451 : Value(value) {}

Member Function Documentation

◆ bool_value()

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

Reimplemented from json11::JsonValue.

Definition at line 446 of file json11.h.

446  {
447  return m_value;
448  }

References json11::Value< Json::BOOL, bool >::m_value.


The documentation for this class was generated from the following file:
json11::Value< Json::BOOL, bool >::Value
Value(bool value)
Definition: json11.h:382
json11::Value< Json::BOOL, bool >::m_value
const bool m_value
Definition: json11.h:397