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

#include <json11.h>

Inheritance diagram for json11::JsonString:
Inheritance graph
Collaboration diagram for json11::JsonString:
Collaboration graph

Public Member Functions

 JsonString (const std::string &value)
 
 JsonString (std::string &&value)
 

Private Member Functions

const std::string & string_value () const override
 

Additional Inherited Members

- 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 Json::Type type () const =0
 
virtual ~JsonValue ()=default
 

Detailed Description

Definition at line 454 of file json11.h.

Constructor & Destructor Documentation

◆ JsonString() [1/2]

json11::JsonString::JsonString ( const std::string &  value)
inlineexplicit

Definition at line 460 of file json11.h.

460 : Value(value) {}

◆ JsonString() [2/2]

json11::JsonString::JsonString ( std::string &&  value)
inlineexplicit

Definition at line 461 of file json11.h.

461 : Value(std::move(value)) {}

Member Function Documentation

◆ string_value()

const std::string& json11::JsonString::string_value ( ) const
inlineoverrideprivatevirtual

Reimplemented from json11::JsonValue.

Definition at line 455 of file json11.h.

455  {
456  return m_value;
457  }

References json11::Value< Json::STRING, std::string >::m_value.


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