webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Protected Member Functions | List of all members
Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <value.h>

Inheritance diagram for Json::ValueIteratorBase:
Json::ValueConstIterator Json::ValueConstIterator Json::ValueConstIterator Json::ValueIterator Json::ValueIterator Json::ValueIterator

Public Types

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

Public Member Functions

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

Protected Member Functions

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

Detailed Description

base class for Value iterators.

Member Typedef Documentation

◆ difference_type [1/3]

◆ difference_type [2/3]

◆ difference_type [3/3]

◆ iterator_category

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

◆ SelfType [1/3]

◆ SelfType [2/3]

◆ SelfType [3/3]

◆ size_t [1/3]

◆ size_t [2/3]

◆ size_t [3/3]

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/6]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [2/6]

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

◆ ValueIteratorBase() [3/6]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [4/6]

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

◆ ValueIteratorBase() [5/6]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [6/6]

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

Member Function Documentation

◆ computeDistance() [1/3]

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

◆ computeDistance() [2/3]

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

◆ computeDistance() [3/3]

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

◆ copy() [1/3]

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

◆ copy() [2/3]

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

◆ copy() [3/3]

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

◆ decrement() [1/3]

void Json::ValueIteratorBase::decrement ( )
protected

◆ decrement() [2/3]

void Json::ValueIteratorBase::decrement ( )
protected

◆ decrement() [3/3]

void Json::ValueIteratorBase::decrement ( )
protected

◆ deref() [1/3]

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

◆ deref() [2/3]

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

◆ deref() [3/3]

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

◆ increment() [1/3]

void Json::ValueIteratorBase::increment ( )
protected

◆ increment() [2/3]

void Json::ValueIteratorBase::increment ( )
protected

◆ increment() [3/3]

void Json::ValueIteratorBase::increment ( )
protected

◆ index() [1/3]

UInt Json::ValueIteratorBase::index ( ) const

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

◆ index() [2/3]

UInt Json::ValueIteratorBase::index ( ) const

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

◆ index() [3/3]

UInt Json::ValueIteratorBase::index ( ) const

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

◆ isEqual() [1/3]

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

◆ isEqual() [2/3]

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

◆ isEqual() [3/3]

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

◆ key() [1/3]

Value Json::ValueIteratorBase::key ( ) const

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

◆ key() [2/3]

Value Json::ValueIteratorBase::key ( ) const

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

◆ key() [3/3]

Value Json::ValueIteratorBase::key ( ) const

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

◆ memberName() [1/4]

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

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

◆ memberName() [2/4]

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

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

◆ memberName() [3/4]

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.

◆ memberName() [4/4]

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.

◆ name()

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.

◆ operator!=() [1/3]

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

◆ operator!=() [2/3]

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

◆ operator!=() [3/3]

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

◆ operator-() [1/3]

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

◆ operator-() [2/3]

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

◆ operator-() [3/3]

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

◆ operator==() [1/3]

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

◆ operator==() [2/3]

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

◆ operator==() [3/3]

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

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