PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PJSON::Array Class Reference

#include <pjson.h>

Inheritance diagram for PJSON::Array:
Collaboration diagram for PJSON::Array:

Public Member Functions

 Array ()
 
 ~Array ()
 
virtual bool IsType (Types type) const
 
virtual void ReadFrom (istream &strm)
 
virtual void PrintOn (ostream &strm) const
 
virtual BaseDeepClone () const
 
bool IsType (size_t index, Types type) const
 
template<class T >
const T * Get (size_t index) const
 
template<class T >
T * Get (size_t index)
 
const ObjectGetObject (size_t index) const
 
ObjectGetObject (size_t index)
 
const ArrayGetArray (size_t index) const
 
ArrayGetArray (size_t index)
 
PString GetString (size_t index) const
 
int GetInteger (size_t index) const
 
int64_t GetInteger64 (size_t index) const
 
unsigned GetUnsigned (size_t index) const
 
uint64_t GetUnsigned64 (size_t index) const
 
NumberType GetNumber (size_t index) const
 
bool GetBoolean (size_t index) const
 
void Append (Types type)
 
void Append (const Base &toAppend)
 
void Append (const PJSON &toAppend)
 
ObjectAppendObject ()
 
ArrayAppendArray ()
 
void AppendString (const PString &value)
 
void AppendNumber (NumberType value)
 
void AppendBoolean (bool value)
 
bool Remove (size_t index)
 
- Public Member Functions inherited from PJSON::Base
 Base ()
 
virtual ~Base ()
 

Additional Inherited Members

- Public Attributes inherited from std::vector< T >
elements
 STL member. More...
 

Constructor & Destructor Documentation

PJSON::Array::Array ( )
inline
PJSON::Array::~Array ( )

Member Function Documentation

void PJSON::Array::Append ( Types  type)
void PJSON::Array::Append ( const Base toAppend)
void PJSON::Array::Append ( const PJSON toAppend)
Array& PJSON::Array::AppendArray ( )
void PJSON::Array::AppendBoolean ( bool  value)
void PJSON::Array::AppendNumber ( NumberType  value)
Object& PJSON::Array::AppendObject ( )
void PJSON::Array::AppendString ( const PString value)
virtual Base* PJSON::Array::DeepClone ( ) const
virtual

Implements PJSON::Base.

template<class T >
const T* PJSON::Array::Get ( size_t  index) const
inline
template<class T >
T* PJSON::Array::Get ( size_t  index)
inline
const Array& PJSON::Array::GetArray ( size_t  index) const
inline
Array& PJSON::Array::GetArray ( size_t  index)
inline
bool PJSON::Array::GetBoolean ( size_t  index) const
int PJSON::Array::GetInteger ( size_t  index) const
int64_t PJSON::Array::GetInteger64 ( size_t  index) const
NumberType PJSON::Array::GetNumber ( size_t  index) const
const Object& PJSON::Array::GetObject ( size_t  index) const
inline
Object& PJSON::Array::GetObject ( size_t  index)
inline
PString PJSON::Array::GetString ( size_t  index) const
unsigned PJSON::Array::GetUnsigned ( size_t  index) const
uint64_t PJSON::Array::GetUnsigned64 ( size_t  index) const
virtual bool PJSON::Array::IsType ( Types  type) const
virtual

Implements PJSON::Base.

bool PJSON::Array::IsType ( size_t  index,
Types  type 
) const
virtual void PJSON::Array::PrintOn ( ostream &  strm) const
virtual

Implements PJSON::Base.

virtual void PJSON::Array::ReadFrom ( istream &  strm)
virtual

Implements PJSON::Base.

bool PJSON::Array::Remove ( size_t  index)

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