#include <JSONArray.h>
|
| virtual bool | isEmpty () const =0 |
| | Checks if the array is empty.
|
| |
| virtual std::size_t | getSize () const =0 |
| | Returns number of elements in the array.
|
| |
| virtual const std::vector< std::shared_ptr< JSONElement > > & | getValues () const =0 |
| | Returns the elements of the array.
|
| |
| virtual enum Type | getType () const =0 |
| | Returns type of this element.
|
| |
| virtual std::string | asString () const =0 |
| | Returns string representation of this element.
|
| |
| bool | isArray () const |
| | Utility to check if this element is JSONArray.
|
| |
| bool | isBoolean () const |
| | Utility to check if this element is JSONBoolean.
|
| |
| bool | isNull () const |
| | Utility to check if this element is null.
|
| |
| bool | isNumber () const |
| | Utility to check if this element is JSONNumber.
|
| |
| bool | isObject () const |
| | Utility to check if this element is JSONObject.
|
| |
| bool | isString () const |
| | Utility to check if this element is JSONString.
|
| |
| bool | isUndefined () const |
| | Utility to check if this element is undefined.
|
| |
|
| enum | Type {
UNDEFINED
, NULLISH
, OBJECT
, ARRAY
,
NUMBER
, STRING
, BOOLEAN
} |
| | Type of the element.
|
| |
| static std::string | typeToString (const enum Type type) |
| | Converts the type to string.
|
| |
◆ getSize()
| virtual std::size_t tenduke::json::JSONArray::getSize |
( |
| ) |
const |
|
pure virtual |
◆ getValues()
| virtual const std::vector< std::shared_ptr< JSONElement > > & tenduke::json::JSONArray::getValues |
( |
| ) |
const |
|
pure virtual |
◆ isEmpty()
| virtual bool tenduke::json::JSONArray::isEmpty |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: