![]() |
SPT JSON API
1.0.0
Developed by Sans Pareil Technologies, Inc. (SPT)
|
Abstract base class that represents a valid JSON value. More...
#include <Value.h>
Inheritance diagram for spt::json::Value:Public Types | |
| enum | Type : int8_t { Type::String, Type::Number, Type::Object, Type::Array, Type::Boolean, Type::Null } |
| Enumeration of JSON data types. More... | |
| typedef std::unique_ptr< Value > | Ptr |
| Unique pointer that holds a value instance. More... | |
Public Member Functions | |
| virtual | ~Value () |
| Virtual DTOR for sub-classes. More... | |
| Value (Value &&rhs) | |
| Move CTOR. More... | |
| Value & | operator= (Value &&rhs) |
| Move assignment operator. More... | |
| Value (const Value &)=delete | |
| Copy CTOR. Deleted. More... | |
| Value & | operator= (Value &)=delete |
| Copy assignment operator deleted. More... | |
| Type | getType () const |
| Return the type of data that is represented by this instance. More... | |
Protected Member Functions | |
| Value (Type t) | |
| CTOR with specified type. More... | |
Abstract base class that represents a valid JSON value.
| typedef std::unique_ptr<Value> spt::json::Value::Ptr |
Unique pointer that holds a value instance.
|
strong |
Enumeration of JSON data types.
|
inlinevirtual |
Virtual DTOR for sub-classes.
|
inline |
Move CTOR.
|
delete |
Copy CTOR. Deleted.
|
inlineexplicitprotected |
CTOR with specified type.
|
inline |
Return the type of data that is represented by this instance.
This is used primarily to allow run-time querying of the type of JSON data (that was parsed usually).