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 int difference_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef ValueIteratorBase SelfType
 
typedef ValueIteratorBase SelfType
 
typedef unsigned int size_t
 
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...
 
UInt index () const
 Return the index of the referenced Value, or -1 if it is not an arrayValue. More...
 
Value key () const
 
Value key () const
 
char constmemberName () const
 
char constmemberName () const
 
char constmemberName (char const **end) const
 
char constmemberName (char const **end) const
 
std::string name () const
 
std::string name () const
 
bool operator!= (const SelfType &other) const
 
bool operator!= (const SelfType &other) const
 
difference_type operator- (const SelfType &other) const
 
difference_type operator- (const SelfType &other) const
 
bool operator== (const SelfType &other) const
 
bool operator== (const SelfType &other) const
 
 ValueIteratorBase ()
 
 ValueIteratorBase ()
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 

Protected Member Functions

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

Private Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Definition at line 1056 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.

Member Typedef Documentation

◆ difference_type [1/2]

◆ difference_type [2/2]

◆ iterator_category [1/2]

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

◆ iterator_category [2/2]

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

◆ SelfType [1/2]

◆ SelfType [2/2]

◆ size_t [1/2]

◆ size_t [2/2]

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/4]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [2/4]

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

◆ ValueIteratorBase() [3/4]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [4/4]

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

Member Function Documentation

◆ computeDistance() [1/2]

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

◆ computeDistance() [2/2]

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

◆ copy() [1/2]

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

◆ copy() [2/2]

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

◆ decrement() [1/2]

void Json::ValueIteratorBase::decrement ( )
protected

◆ decrement() [2/2]

void Json::ValueIteratorBase::decrement ( )
protected

◆ deref() [1/2]

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

◆ deref() [2/2]

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

◆ increment() [1/2]

void Json::ValueIteratorBase::increment ( )
protected

◆ increment() [2/2]

void Json::ValueIteratorBase::increment ( )
protected

◆ index() [1/2]

UInt Json::ValueIteratorBase::index ( ) const

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

◆ index() [2/2]

UInt Json::ValueIteratorBase::index ( ) const

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

Definition at line 2321 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ isEqual() [1/2]

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

◆ isEqual() [2/2]

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

◆ key() [1/2]

Value Json::ValueIteratorBase::key ( ) const

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

Definition at line 2311 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ key() [2/2]

Value Json::ValueIteratorBase::key ( ) const

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

◆ memberName() [1/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() [2/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.

Definition at line 2336 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ memberName() [3/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.

Definition at line 2341 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ 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() [1/2]

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.

◆ name() [2/2]

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 2328 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

Member Data Documentation

◆ current_

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

◆ isNull_

bool Json::ValueIteratorBase::isNull_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41