template<unsigned dimensions, class T>
Corrade::Containers::StridedIterator class

Strided array view iterator.

Used by StridedArrayView to provide iterator access to its items.

Public types

using Type = T
Underlying type.
using ElementType = std::conditional<dimensions==1, T&, StridedArrayView<dimensions - 1, T>>::type
Element type.

Public functions

auto operator==(const StridedIterator<dimensions, T>& other) const -> bool
Equality comparison.
auto operator!=(const StridedIterator<dimensions, T>& other) const -> bool
Non-equality comparison.
auto operator<(const StridedIterator<dimensions, T>& other) const -> bool
Less than comparison.
auto operator<=(const StridedIterator<dimensions, T>& other) const -> bool
Less than or equal comparison.
auto operator>(const StridedIterator<dimensions, T>& other) const -> bool
Greater than comparison.
auto operator>=(const StridedIterator<dimensions, T>& other) const -> bool
Greater than or equal comparison.
auto operator+(std::ptrdiff_t i) const -> StridedIterator<dimensions, T>
Add an offset.
auto operator+=(std::ptrdiff_t i) -> StridedIterator<dimensions, T>& new in Git master
Add an offset and assign.
auto operator-(std::ptrdiff_t i) const -> StridedIterator<dimensions, T>
Subtract an offset.
auto operator-=(std::ptrdiff_t i) -> StridedIterator<dimensions, T>& new in Git master
Subtract an offset and assign.
auto operator-(const StridedIterator<dimensions, T>& it) const -> std::ptrdiff_t
Iterator difference.
auto operator--() -> StridedIterator<dimensions, T>&
Go back to previous position.
auto operator++() -> StridedIterator<dimensions, T>&
Advance to next position.
auto operator*() const -> ElementType
Dereference.

Typedef documentation

template<unsigned dimensions, class T>
typedef T Corrade::Containers::StridedIterator<dimensions, T>::Type

Underlying type.

Underlying data type. See also ElementType.

template<unsigned dimensions, class T>
typedef std::conditional<dimensions==1, T&, StridedArrayView<dimensions - 1, T>>::type Corrade::Containers::StridedIterator<dimensions, T>::ElementType

Element type.

For StridedArrayView1D iterators equivalent to a reference to Type, for higher dimensions a strided view of one dimension less.