Skip To Content ArcGIS for Developers Sign In Dashboard

iterator Class

(Esri::ArcGISRuntime::Iterable::iterator)

Public Functions

iterator(Iterable *owner, int index)
iterator(const iterator &other)
bool operator!=(const iterator &other) const
T operator*()
iterator &operator++()
iterator operator++(int )
bool operator<(const iterator &other) const
bool operator<=(const iterator &other) const
iterator &operator=(const iterator &other)
bool operator==(const iterator &other) const
bool operator>(const iterator &other) const
bool operator>=(const iterator &other) const

Member Function Documentation

iterator::iterator(Iterable *owner, int index)

Constructor that takes the owning owner Iterable as well as the requesting index.

iterator::iterator(const iterator &other)

Copy constructor that copies the other into a new iterator.

bool iterator::operator!=(const iterator &other) const

Compares this iterator against other.

Returns true if this and other point to different objects.

T iterator::operator*()

Returns the current item the iterator points to.

Returns the templated value.

iterator &iterator::operator++()

Prefix increment operator; returns an iterator pointing to the next object.

Incrementing an iterator already pointing to Iterable::end is undefined.

iterator iterator::operator++(int )

Postfix increment operator; returns an iterator pointing to the next object.

Incrementing an iterator already pointing to Iterable::end is undefined.

This method is less efficient than the prefix ++ operator.

bool iterator::operator<(const iterator &other) const

Compares this const_iterator against other.

Returns true if this iterator points to an object less than other.

bool iterator::operator<=(const iterator &other) const

iterator &iterator::operator=(const iterator &other)

Copy operator that copies the other into a new iterator

Returns the new iterator.

bool iterator::operator==(const iterator &other) const

Compares this iterator against other.

Returns true if this and other point to the same underlying object.

bool iterator::operator>(const iterator &other) const

bool iterator::operator>=(const iterator &other) const


Feedback on this topic?