CMSC23700 Common Code Library
Support code for CS23700 programming projects
JSON::Array Class Reference

JSON arrays. More...

#include <json.hxx>

Inherits JSON::Value.

Public Member Functions

 Array ()
 
 ~Array ()
 
int length () const
 
void add (Value *v)
 
Value * operator[] (int idx) const
 
std::string toString ()
 
- Public Member Functions inherited from JSON::Value
Type type () const
 return the type of this JSON value More...
 
bool isObject () const
 return true if this value is an object More...
 
bool isArray () const
 return true if this value is an array More...
 
bool isNumber () const
 return true if this value is a number More...
 
bool isString () const
 return true if this value is a string More...
 
bool isBool () const
 return true if this value is a boolean More...
 
bool isNull () const
 return true if this value is the null value More...
 
const Object * asObject () const
 dynamic cast to JSON object More...
 
const Array * asArray () const
 dynamic cast to JSON object More...
 
const Number * asNumber () const
 dynamic cast to JSON object More...
 
const String * asString () const
 dynamic cast to JSON object More...
 
const Bool * asBool () const
 dynamic cast to JSON object More...
 
virtual ~Value ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from JSON::Value
 Value (Type ty)
 
- Protected Attributes inherited from JSON::Value
Type _ty
 

Detailed Description

JSON arrays.

Constructor & Destructor Documentation

JSON::Array::Array ( )
JSON::Array::~Array ( )

Member Function Documentation

void JSON::Array::add ( Value *  v)
inline
int JSON::Array::length ( ) const
inline
Value* JSON::Array::operator[] ( int  idx) const
inline
std::string JSON::Array::toString ( )
virtual

Implements JSON::Value.


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