Twitch SDK (Internal)
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
ttv::json::ValueConstIterator Class Reference

const iterator for object and array value. More...

#include <value.h>

Inheritance diagram for ttv::json::ValueConstIterator:
ttv::json::ValueIteratorBase

Public Types

typedef unsigned int size_t
 
typedef int difference_type
 
typedef const Valuereference
 
typedef const Valuepointer
 
typedef ValueConstIterator SelfType
 

Public Member Functions

 ValueConstIterator ()
 
SelfTypeoperator= (const ValueIteratorBase &other)
 
SelfType operator++ (int)
 
SelfType operator-- (int)
 
SelfTypeoperator-- ()
 
SelfTypeoperator++ ()
 
reference operator* () const
 
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...
 
Value::Int 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...
 

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 Member Functions

 ValueConstIterator (const Value::ObjectValues::iterator &current)
 

Friends

class Value
 

Detailed Description

const iterator for object and array value.

Member Typedef Documentation

◆ difference_type

◆ pointer

◆ reference

◆ SelfType

◆ size_t

Constructor & Destructor Documentation

◆ ValueConstIterator() [1/2]

ttv::json::ValueConstIterator::ValueConstIterator ( )

◆ ValueConstIterator() [2/2]

ttv::json::ValueConstIterator::ValueConstIterator ( const Value::ObjectValues::iterator &  current)
explicitprivate

Member Function Documentation

◆ computeDistance()

difference_type ttv::json::ValueIteratorBase::computeDistance ( const SelfType other) const
protectedinherited

◆ copy()

void ttv::json::ValueIteratorBase::copy ( const SelfType other)
protectedinherited

◆ decrement()

void ttv::json::ValueIteratorBase::decrement ( )
protectedinherited

◆ deref()

Value& ttv::json::ValueIteratorBase::deref ( ) const
protectedinherited

◆ increment()

void ttv::json::ValueIteratorBase::increment ( )
protectedinherited

◆ index()

Value::Int ttv::json::ValueIteratorBase::index ( ) const
inherited

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

◆ isEqual()

bool ttv::json::ValueIteratorBase::isEqual ( const SelfType other) const
protectedinherited

◆ key()

Value ttv::json::ValueIteratorBase::key ( ) const
inherited

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

◆ memberName()

const char* ttv::json::ValueIteratorBase::memberName ( ) const
inherited

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

◆ operator!=()

bool ttv::json::ValueIteratorBase::operator!= ( const SelfType other) const
inlineinherited

◆ operator*()

reference ttv::json::ValueConstIterator::operator* ( ) const
inline

◆ operator++() [1/2]

SelfType ttv::json::ValueConstIterator::operator++ ( int  )
inline

◆ operator++() [2/2]

SelfType& ttv::json::ValueConstIterator::operator++ ( )
inline

◆ operator-()

difference_type ttv::json::ValueIteratorBase::operator- ( const SelfType other) const
inlineinherited

◆ operator--() [1/2]

SelfType ttv::json::ValueConstIterator::operator-- ( int  )
inline

◆ operator--() [2/2]

SelfType& ttv::json::ValueConstIterator::operator-- ( )
inline

◆ operator=()

SelfType& ttv::json::ValueConstIterator::operator= ( const ValueIteratorBase other)

◆ operator==()

bool ttv::json::ValueIteratorBase::operator== ( const SelfType other) const
inlineinherited

Friends And Related Function Documentation

◆ Value

friend class Value
friend

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