JSON arrays.
More...
#include <json.hpp>
|
| Array () |
|
| ~Array () |
|
int | length () const |
|
void | add (Value *v) |
|
Value * | operator[] (int idx) const |
|
std::string | toString () |
|
Type | type () const |
| return the type of this JSON value
|
|
bool | isObject () const |
| return true if this value is an object
|
|
bool | isArray () const |
| return true if this value is an array
|
|
bool | isNumber () const |
| return true if this value is a number
|
|
bool | isInteger () const |
| return true if this value is an integer
|
|
bool | isReal () const |
| return true if this value is a real number
|
|
bool | isString () const |
| return true if this value is a string
|
|
bool | isBool () const |
| return true if this value is a boolean
|
|
bool | isNull () const |
| return true if this value is the null value
|
|
const Object * | asObject () const |
| dynamic cast to JSON object
|
|
const Array * | asArray () const |
| dynamic cast to JSON array
|
|
const Number * | asNumber () const |
| dynamic cast to JSON number
|
|
const Integer * | asInteger () const |
| dynamic cast to JSON integer
|
|
const Real * | asReal () const |
| dynamic cast to JSON real number
|
|
const String * | asString () const |
| dynamic cast to JSON string
|
|
const Bool * | asBool () const |
| dynamic cast to JSON boolean
|
|
virtual | ~Value () |
|
◆ Array()
◆ ~Array()
◆ add()
void json::Array::add |
( |
Value * |
v | ) |
|
|
inline |
◆ length()
int json::Array::length |
( |
| ) |
const |
|
inline |
◆ operator[]()
Value * json::Array::operator[] |
( |
int |
idx | ) |
const |
|
inline |
◆ toString()
std::string json::Array::toString |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2023/solutions/cs237-library/include/json.hpp