MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Public Member Functions | Private Attributes
JSON::ConstIter Class Reference

#include <json.h>

Public Member Functions

 ConstIter (const Value &root)
 Construct from a root Value to iterate over. More...
 
 ConstIter (const Value &root)
 Construct from a root Value to iterate over. More...
 
const std::string & key () const
 Return the name of the current indice. More...
 
const std::string & key () const
 Return the name of the current indice. More...
 
unsigned int num () const
 Return the number of the current indice. More...
 
unsigned int num () const
 Return the number of the current indice. More...
 
 operator bool () const
 True if not done iterating. More...
 
 operator bool () const
 True if not done iterating. More...
 
const Valueoperator* () const
 Dereferences into a Value reference. More...
 
const Valueoperator* () const
 Dereferences into a Value reference. More...
 
ConstIteroperator++ ()
 Go to next iteration. More...
 
ConstIteroperator++ ()
 Go to next iteration. More...
 
const Valueoperator-> () const
 Dereferences into a Value reference. More...
 
const Valueoperator-> () const
 Dereferences into a Value reference. More...
 

Private Attributes

std::deque< Value * >::const_iterator aIt
 
unsigned int i
 
ValueType myType
 
std::map< std::string, Value * >::const_iterator oIt
 
const Valuer
 

Constructor & Destructor Documentation

JSON::ConstIter::ConstIter ( const Value root)

Construct from a root Value to iterate over.

JSON::ConstIter::ConstIter ( const Value root)

Construct from a root Value to iterate over.

Member Function Documentation

const std::string & JSON::ConstIter::key ( ) const

Return the name of the current indice.

const std::string& JSON::ConstIter::key ( ) const

Return the name of the current indice.

unsigned int JSON::ConstIter::num ( ) const

Return the number of the current indice.

unsigned int JSON::ConstIter::num ( ) const

Return the number of the current indice.

JSON::ConstIter::operator bool ( ) const

True if not done iterating.

JSON::ConstIter::operator bool ( ) const

True if not done iterating.

const JSON::Value & JSON::ConstIter::operator* ( ) const

Dereferences into a Value reference.

If invalid iterator, returns an empty reference and prints a warning message.

const Value& JSON::ConstIter::operator* ( ) const

Dereferences into a Value reference.

ConstIter& JSON::ConstIter::operator++ ( )

Go to next iteration.

JSON::ConstIter & JSON::ConstIter::operator++ ( )

Go to next iteration.

const Value* JSON::ConstIter::operator-> ( ) const

Dereferences into a Value reference.

const JSON::Value * JSON::ConstIter::operator-> ( ) const

Dereferences into a Value reference.

If invalid iterator, returns an empty reference and prints a warning message.

Field Documentation

std::deque< Value * >::const_iterator JSON::ConstIter::aIt
private
unsigned int JSON::ConstIter::i
private
ValueType JSON::ConstIter::myType
private
std::map< std::string, Value * >::const_iterator JSON::ConstIter::oIt
private
const Value * JSON::ConstIter::r
private

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