ArrayValue Class Reference

This class represents an array value. More...

#include <value.h>

Inheritance diagram for ArrayValue:

Value List of all members.

Public Member Functions

virtual ~ArrayValue ()
 Destructor is declared virtual, as it always should be.
ValueType GetType () const
 Return this instance's type.
void Append (Value *value)
 Append value given to the end of this array.
virtual Valueoperator[] (unsigned int i)
 Gets the subelement at the specified index.
virtual unsigned int Size () const
 Returns the number of sub values this value contains.
virtual bool Has (unsigned int i) const
 Check if this value contains the specified sub value.

Detailed Description

This class represents an array value.

Author:
Matthew Welch


Constructor & Destructor Documentation

virtual ArrayValue::~ArrayValue (  )  [inline, virtual]

Destructor is declared virtual, as it always should be.


Member Function Documentation

ValueType ArrayValue::GetType (  )  const [inline, virtual]

Return this instance's type.

Returns:
ValueType enum of this intance's type.

Implements Value.

void ArrayValue::Append ( Value value  )  [inline]

Append value given to the end of this array.

Parameters:
value The value to insert.

virtual Value& ArrayValue::operator[] ( unsigned int  i  )  [inline, virtual]

Gets the subelement at the specified index.

Reimplemented from Value.

virtual unsigned int ArrayValue::Size (  )  const [inline, virtual]

Returns the number of sub values this value contains.

Reimplemented from Value.

virtual bool ArrayValue::Has ( unsigned int  i  )  const [inline, virtual]

Check if this value contains the specified sub value.

Reimplemented from Value.


The documentation for this class was generated from the following file:
Generated on Wed Apr 18 15:50:11 2007 for JSON Parser by  doxygen 1.5.2