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

Iterator for object and array value. More...

#include <value.h>

Inheritance diagram for ttv::json::ValueIterator:
ttv::json::ValueIteratorBase

Public Types

typedef unsigned int size_t
 
typedef int difference_type
 
typedef Valuereference
 
typedef Valuepointer
 
typedef ValueIterator SelfType
 

Public Member Functions

 ValueIterator ()
 
 ValueIterator (const ValueConstIterator &other)
 
 ValueIterator (const ValueIterator &other)
 
SelfTypeoperator= (const SelfType &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

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

Friends

class Value
 

Detailed Description

Iterator for object and array value.

Member Typedef Documentation

◆ difference_type

◆ pointer

◆ reference

◆ SelfType

◆ size_t

typedef unsigned int ttv::json::ValueIterator::size_t

Constructor & Destructor Documentation

◆ ValueIterator() [1/4]

ttv::json::ValueIterator::ValueIterator ( )

◆ ValueIterator() [2/4]

ttv::json::ValueIterator::ValueIterator ( const ValueConstIterator other)

◆ ValueIterator() [3/4]

ttv::json::ValueIterator::ValueIterator ( const ValueIterator other)

◆ ValueIterator() [4/4]

ttv::json::ValueIterator::ValueIterator ( 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::ValueIterator::operator* ( ) const
inline

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator-()

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

◆ operator--() [1/2]

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

◆ operator--() [2/2]

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

◆ operator=()

SelfType& ttv::json::ValueIterator::operator= ( const SelfType 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: