Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <json.h>

Inheritance diagram for Json::ValueIteratorBase:
Inheritance graph
[legend]

Public Types

typedef int difference_type
 
typedef
std::bidirectional_iterator_tag 
iterator_category
 
typedef ValueIteratorBase SelfType
 
typedef unsigned int size_t
 

Public Member Functions

UInt index () const
 Return the index of the referenced Value, or -1 if it is not an arrayValue. More...
 
Value key () const
 
char const * memberName () const
 
char const * memberName (char const **end) const
 
std::string name () const
 
bool operator!= (const SelfType &other) const
 
difference_type operator- (const SelfType &other) const
 
bool operator== (const SelfType &other) const
 
 ValueIteratorBase ()
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 

Protected Member Functions

difference_type computeDistance (const SelfType &other) const
 
void copy (const SelfType &other)
 
void decrement ()
 
Valuederef () const
 
void increment ()
 
bool isEqual (const SelfType &other) const
 

Private Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Definition at line 1006 of file json.h.

Member Typedef Documentation

Definition at line 1010 of file json.h.

typedef std::bidirectional_iterator_tag Json::ValueIteratorBase::iterator_category

Definition at line 1008 of file json.h.

Definition at line 1011 of file json.h.

typedef unsigned int Json::ValueIteratorBase::size_t

Definition at line 1009 of file json.h.

Constructor & Destructor Documentation

Json::ValueIteratorBase::ValueIteratorBase ( )

Definition at line 2220 of file jsoncpp.cpp.

Json::ValueIteratorBase::ValueIteratorBase ( const Value::ObjectValues::iterator &  current)
explicit

Definition at line 2224 of file jsoncpp.cpp.

Member Function Documentation

ValueIteratorBase::difference_type Json::ValueIteratorBase::computeDistance ( const SelfType other) const
protected

Definition at line 2241 of file jsoncpp.cpp.

void Json::ValueIteratorBase::copy ( const SelfType other)
protected

Definition at line 2275 of file jsoncpp.cpp.

void Json::ValueIteratorBase::decrement ( )
protected

Definition at line 2236 of file jsoncpp.cpp.

Value & Json::ValueIteratorBase::deref ( ) const
protected

Definition at line 2228 of file jsoncpp.cpp.

void Json::ValueIteratorBase::increment ( )
protected

Definition at line 2232 of file jsoncpp.cpp.

UInt Json::ValueIteratorBase::index ( ) const

Return the index of the referenced Value, or -1 if it is not an arrayValue.

Definition at line 2290 of file jsoncpp.cpp.

bool Json::ValueIteratorBase::isEqual ( const SelfType other) const
protected

Definition at line 2268 of file jsoncpp.cpp.

Value Json::ValueIteratorBase::key ( ) const

Return either the index or the member name of the referenced value as a Value.

Definition at line 2280 of file jsoncpp.cpp.

char const * Json::ValueIteratorBase::memberName ( ) const

Return the member name of the referenced Value. "" if it is not an objectValue.

Deprecated:
This cannot be used for UTF-8 strings, since there can be embedded nulls.

Definition at line 2305 of file jsoncpp.cpp.

char const * Json::ValueIteratorBase::memberName ( char const **  end) const

Return the member name of the referenced Value, or NULL if it is not an objectValue.

Note
Better version than memberName(). Allows embedded nulls.

Definition at line 2310 of file jsoncpp.cpp.

std::string Json::ValueIteratorBase::name ( ) const

Return the member name of the referenced Value, or "" if it is not an objectValue.

Note
Avoid c_str() on result, as embedded zeroes are possible.

Definition at line 2297 of file jsoncpp.cpp.

bool Json::ValueIteratorBase::operator!= ( const SelfType other) const
inline

Definition at line 1015 of file json.h.

difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const
inline

Definition at line 1017 of file json.h.

bool Json::ValueIteratorBase::operator== ( const SelfType other) const
inline

Definition at line 1013 of file json.h.

Member Data Documentation

Value::ObjectValues::iterator Json::ValueIteratorBase::current_
private

Definition at line 1057 of file json.h.

bool Json::ValueIteratorBase::isNull_
private

Definition at line 1059 of file json.h.


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


mission_planning
Author(s): ivan
autogenerated on Thu Nov 12 2015 19:08:20