Jerryscript::Array::Iterator Class Reference

#include <Types.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = IndexedItem
 
using difference_type = std::ptrdiff_t
 
using pointer = IndexedItem *
 
using reference = IndexedItem &
 

Public Member Functions

 Iterator (const Iterator &)=default
 
 Iterator (Array &array, unsigned index)
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iterator operator+= (size_t distance)
 
bool operator== (const Iterator &rhs) const
 
bool operator!= (const Iterator &rhs) const
 
IndexedItem operator* ()
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using Jerryscript::Array::Iterator::iterator_category = std::random_access_iterator_tag

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator() [1/2]

Jerryscript::Array::Iterator::Iterator ( const Iterator )
default

◆ Iterator() [2/2]

Jerryscript::Array::Iterator::Iterator ( Array array,
unsigned  index 
)
inline

Member Function Documentation

◆ operator!=()

bool Jerryscript::Array::Iterator::operator!= ( const Iterator rhs) const
inline

◆ operator*()

IndexedItem Jerryscript::Array::Iterator::operator* ( )
inline

◆ operator++() [1/2]

Iterator& Jerryscript::Array::Iterator::operator++ ( )
inline

◆ operator++() [2/2]

Iterator Jerryscript::Array::Iterator::operator++ ( int  )
inline

◆ operator+=()

Iterator Jerryscript::Array::Iterator::operator+= ( size_t  distance)
inline

◆ operator==()

bool Jerryscript::Array::Iterator::operator== ( const Iterator rhs) const
inline

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