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

#include <json.h>

Public Member Functions

 Iter (Value &root)
 Construct from a root Value to iterate over. More...
 
 Iter (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...
 
Valueoperator* () const
 Dereferences into a Value reference. More...
 
Valueoperator* () const
 Dereferences into a Value reference. More...
 
Iteroperator++ ()
 Go to next iteration. More...
 
Iteroperator++ ()
 Go to next iteration. More...
 
Valueoperator-> () const
 Dereferences into a Value reference. More...
 
Valueoperator-> () const
 Dereferences into a Value reference. More...
 

Private Attributes

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

Constructor & Destructor Documentation

JSON::Iter::Iter ( Value root)

Construct from a root Value to iterate over.

JSON::Iter::Iter ( Value root)

Construct from a root Value to iterate over.

Member Function Documentation

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

Return the name of the current indice.

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

Return the name of the current indice.

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

Return the number of the current indice.

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

Return the number of the current indice.

JSON::Iter::operator bool ( ) const

True if not done iterating.

JSON::Iter::operator bool ( ) const

True if not done iterating.

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

Dereferences into a Value reference.

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

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

Dereferences into a Value reference.

Iter& JSON::Iter::operator++ ( )

Go to next iteration.

JSON::Iter & JSON::Iter::operator++ ( )

Go to next iteration.

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

Dereferences into a Value reference.

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

Dereferences into a Value reference.

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

Field Documentation

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

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