fson  1.0.2
A comment-preserving C++ library for FSON — a human-friendly superset of JSON / JSON5
fedem::fson::Null Class Referencefinal

#include <Null.hh>

+ Inheritance diagram for fedem::fson::Null:
+ Collaboration diagram for fedem::fson::Null:

Public Member Functions

 Null ()=default
 
Type getType () const noexcept override
 
std::unique_ptr< Valueclone () const override
 
NullasNull () noexcept override
 
Null const * asNull () const noexcept override
 
- Public Member Functions inherited from fedem::fson::Value
virtual ~Value ()
 
bool isNull () const noexcept
 
bool isBoolean () const noexcept
 
bool isNumber () const noexcept
 
bool isString () const noexcept
 
bool isArray () const noexcept
 
bool isObject () const noexcept
 
virtual BooleanasBoolean () noexcept
 
virtual Boolean const * asBoolean () const noexcept
 
virtual NumberasNumber () noexcept
 
virtual Number const * asNumber () const noexcept
 
virtual StringasString () noexcept
 
virtual String const * asString () const noexcept
 
virtual ArrayasArray () noexcept
 
virtual Array const * asArray () const noexcept
 
virtual ObjectasObject () noexcept
 
virtual Object const * asObject () const noexcept
 

Additional Inherited Members

- Public Types inherited from fedem::fson::Value
enum class  Type {
  Null , Boolean , Number , String ,
  Array , Object
}
 
- Protected Member Functions inherited from fedem::fson::Value
 Value ()=default
 

Constructor & Destructor Documentation

◆ Null()

fedem::fson::Null::Null ( )
default

Member Function Documentation

◆ getType()

Value::Type fedem::fson::Null::getType ( ) const
inlineoverridevirtualnoexcept

◆ clone()

std::unique_ptr< Value > fedem::fson::Null::clone ( ) const
inlineoverridevirtual

Implements fedem::fson::Value.

◆ asNull() [1/2]

Null * fedem::fson::Null::asNull ( )
inlineoverridevirtualnoexcept

Reimplemented from fedem::fson::Value.

◆ asNull() [2/2]

Null const * fedem::fson::Null::asNull ( ) const
inlineoverridevirtualnoexcept

Reimplemented from fedem::fson::Value.


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