An iterator type for the IdxRangeSlice. More...
Public Member Functions | |
KOKKOS_FUNCTION constexpr | IdxRangeSliceIterator (Idx< Grid1D > value, IdxStep< Grid1D > stride) |
Build an iterator using the current value and the distance to the following element. | |
KOKKOS_FUNCTION constexpr Idx< Grid1D > | operator* () const noexcept |
Get the value referred to by the iterator. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator & | operator++ () |
The prefix increment operator. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator | operator++ (int) |
The postfix increment operator. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator & | operator-- () |
The prefix decrement operator. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator | operator-- (int) |
The postfix decrement operator. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator & | operator+= (difference_type n) |
Increment the current iterator by n elements. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator & | operator-= (difference_type n) |
Decrement the current iterator by n elements. | |
KOKKOS_FUNCTION constexpr Idx< Grid1D > | operator[] (difference_type n) const |
Access the n-th following element. | |
Friends | |
KOKKOS_FUNCTION constexpr bool | operator== (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare iterator equality. | |
KOKKOS_FUNCTION constexpr bool | operator!= (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare iterator non-equality. | |
KOKKOS_FUNCTION constexpr bool | operator< (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare the order of iterators. | |
KOKKOS_FUNCTION constexpr bool | operator> (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare the order of iterators. | |
KOKKOS_FUNCTION constexpr bool | operator<= (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare the order of iterators. | |
KOKKOS_FUNCTION constexpr bool | operator>= (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Compare the order of iterators. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator | operator+ (IdxRangeSliceIterator i, difference_type n) |
Increment an iterator by n elements. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator | operator+ (difference_type n, IdxRangeSliceIterator i) |
Increment an iterator by n elements. | |
KOKKOS_FUNCTION constexpr IdxRangeSliceIterator | operator- (IdxRangeSliceIterator i, difference_type n) |
Decrement an iterator by n elements. | |
KOKKOS_FUNCTION constexpr difference_type | operator- (IdxRangeSliceIterator const &xx, IdxRangeSliceIterator const &yy) |
Decrement an iterator by n elements. | |
An iterator type for the IdxRangeSlice.
|
inlineexplicitconstexpr |
Build an iterator using the current value and the distance to the following element.
value | The value of the discrete sub-index range element. |
stride | The stride between consectuive sub-index range elements. |
|
inlineconstexprnoexcept |
Get the value referred to by the iterator.
|
inlineconstexpr |
The prefix increment operator.
|
inlineconstexpr |
The postfix increment operator.
|
inlineconstexpr |
The prefix decrement operator.
|
inlineconstexpr |
The postfix decrement operator.
|
inlineconstexpr |
Increment the current iterator by n elements.
n | The number of strides by which the iterator should be incremented. |
|
inlineconstexpr |
Decrement the current iterator by n elements.
n | The number of strides by which the iterator should be decremented. |
|
inlineconstexpr |
Access the n-th following element.
n | The index of the element. |