|
fson
1.0.2
A comment-preserving C++ library for FSON — a human-friendly superset of JSON / JSON5
|
#include <Boolean.hh>
Inheritance diagram for fedem::fson::Boolean:
Collaboration diagram for fedem::fson::Boolean:Public Member Functions | |
| Boolean (bool value=false) noexcept | |
| Type | getType () const noexcept override |
| std::unique_ptr< Value > | clone () const override |
| Boolean * | asBoolean () noexcept override |
| Boolean const * | asBoolean () const noexcept override |
| bool | getValue () const noexcept |
| void | setValue (bool value) noexcept |
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 Null * | asNull () noexcept |
| virtual Null const * | asNull () const noexcept |
| virtual Number * | asNumber () noexcept |
| virtual Number const * | asNumber () const noexcept |
| virtual String * | asString () noexcept |
| virtual String const * | asString () const noexcept |
| virtual Array * | asArray () noexcept |
| virtual Array const * | asArray () const noexcept |
| virtual Object * | asObject () noexcept |
| virtual Object const * | asObject () const noexcept |
Private Attributes | |
| bool | value |
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 | |
|
inlineexplicitnoexcept |
|
inlineoverridevirtualnoexcept |
Implements fedem::fson::Value.
References fedem::fson::Value::Boolean.
|
inlineoverridevirtual |
Implements fedem::fson::Value.
References value.
|
inlineoverridevirtualnoexcept |
Reimplemented from fedem::fson::Value.
|
inlineoverridevirtualnoexcept |
Reimplemented from fedem::fson::Value.
|
inlinenoexcept |
References value.
Referenced by fedem::fson::Object::getBoolean(), and fedem::fson::FsonWriter::writeValue().
Here is the caller graph for this function:
|
inlinenoexcept |
|
private |
Referenced by clone(), and getValue().