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

base class for Value iterators. More...

#include <value.h>

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

Public Types

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...
 
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 Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Member Typedef Documentation

◆ difference_type

◆ SelfType

◆ size_t

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/2]

ttv::json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [2/2]

ttv::json::ValueIteratorBase::ValueIteratorBase ( const Value::ObjectValues::iterator &  current)
explicit

Member Function Documentation

◆ computeDistance()

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

◆ copy()

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

◆ decrement()

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

◆ deref()

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

◆ increment()

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

◆ index()

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

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

◆ isEqual()

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

◆ key()

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

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

◆ memberName()

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

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

◆ operator!=()

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

◆ operator-()

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

◆ operator==()

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

Member Data Documentation

◆ current_

Value::ObjectValues::iterator ttv::json::ValueIteratorBase::current_
private

◆ isNull_

bool ttv::json::ValueIteratorBase::isNull_
private

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