![]() |
Gamedev Framework (gf)
0.10.0
A C++14 framework for 2D games
|
An iterator for a 2D range. More...
#include <gf/Range.h>
Public Member Functions | |
constexpr | Iterator (Range< T > iteratorRange, Vector< T, 2 > iteratorPosition) noexcept |
Constructor. More... | |
Vector< T, 2 > | operator* () noexcept |
Dereference operator. More... | |
Iterator & | operator++ () noexcept |
Increment operator (prefix) More... | |
Iterator | operator++ (int) noexcept |
Increment operator (postfix) More... | |
constexpr bool | operator!= (const Iterator &other) const noexcept |
Inequality operator. More... | |
constexpr bool | operator== (const Iterator &other) const noexcept |
Equality operator. More... | |
Public Attributes | |
Range< T > | range |
Vector< T, 2 > | position |
An iterator for a 2D range.
|
inlinenoexcept |
Constructor.
iteratorRange | The range in the first dimension |
iteratorPosition | The current position in 2D |
|
inlinenoexcept |
Inequality operator.
other | Another iterator |
|
inlinenoexcept |
Dereference operator.
|
inlinenoexcept |
Increment operator (prefix)
|
inlinenoexcept |
Increment operator (postfix)
|
inlinenoexcept |
Equality operator.
other | Another iterator |
Vector<T, 2> gf::PositionRange< T >::Iterator::position |
Range<T> gf::PositionRange< T >::Iterator::range |