A value indexer, for iteration or generation. More...
Public Member Functions | |
| indexer (const sliceRange *range, const label i=0) | |
| Construct from range at given local index. More... | |
| void | next () noexcept |
| Forward increment, no checking. More... | |
| void | next (const label n) noexcept |
| Forward increment, no checking. More... | |
| bool | equals (const indexer &other) const noexcept |
| Test for equality of values, not stride. More... | |
| label | operator* () const noexcept |
| Return the value. More... | |
| label | operator() () |
| Apply a postfix increment and return the current value. More... | |
A value indexer, for iteration or generation.
Definition at line 169 of file sliceRange.H.
|
inline |
Construct from range at given local index.
An out-of-range index (eg, negative) creates an 'end' iterator
Definition at line 56 of file sliceRangeI.H.
|
inlinenoexcept |
Forward increment, no checking.
Definition at line 70 of file sliceRangeI.H.
|
inlinenoexcept |
Test for equality of values, not stride.
Definition at line 83 of file sliceRangeI.H.
|
inlinenoexcept |
Return the value.
Definition at line 91 of file sliceRangeI.H.
|
inline |
Apply a postfix increment and return the current value.
This operator definition is required for a generator - see std::generate()
Definition at line 97 of file sliceRangeI.H.