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

base class for Value iterators. More...

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

Public Types

using size_t = unsigned int
 
using difference_type = int
 
using SelfType = ValueIteratorBase
 

Public Member Functions

 ValueIteratorBase ()
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 
bool operator== (const SelfType &other) const
 
bool 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. More...
 

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)
 

Private Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Definition at line 494 of file json_value.h.

Member Typedef Documentation

◆ size_t

using Json::ValueIteratorBase::size_t = unsigned int

Definition at line 497 of file json_value.h.

◆ difference_type

Definition at line 498 of file json_value.h.

◆ SelfType

Definition at line 499 of file json_value.h.

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/2]

Json::ValueIteratorBase::ValueIteratorBase ( )

Definition at line 34 of file json_valueiterator.cpp.

◆ ValueIteratorBase() [2/2]

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

Definition at line 38 of file json_valueiterator.cpp.

Member Function Documentation

◆ operator==()

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

Definition at line 506 of file json_value.h.

◆ operator!=()

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

Definition at line 512 of file json_value.h.

◆ key()

Value Json::ValueIteratorBase::key ( ) const

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

Definition at line 108 of file json_valueiterator.cpp.

◆ index()

UInt Json::ValueIteratorBase::index ( ) const

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

Definition at line 124 of file json_valueiterator.cpp.

◆ memberName()

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

Return the member name of the referenced Value.

"" if it is not an objectValue.

Definition at line 135 of file json_valueiterator.cpp.

◆ deref()

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

Definition at line 45 of file json_valueiterator.cpp.

◆ increment()

void Json::ValueIteratorBase::increment ( )
protected

Definition at line 51 of file json_valueiterator.cpp.

◆ decrement()

void Json::ValueIteratorBase::decrement ( )
protected

Definition at line 57 of file json_valueiterator.cpp.

◆ computeDistance()

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

Definition at line 63 of file json_valueiterator.cpp.

◆ isEqual()

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

Definition at line 91 of file json_valueiterator.cpp.

◆ copy()

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

Definition at line 102 of file json_valueiterator.cpp.

Member Data Documentation

◆ current_

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

Definition at line 551 of file json_value.h.

◆ isNull_

bool Json::ValueIteratorBase::isNull_
private

Definition at line 553 of file json_value.h.