A random-access, integer-like, input iterator for integral values with a stride. If the stride is 1, the Foam::IndexIterator would be a better choice. More...


Public Types | |
| typedef std::random_access_iterator_tag | iterator_category |
| typedef IntType | value_type |
| typedef IntType | difference_type |
| typedef const IntType * | pointer |
| typedef IntType | reference |
Public Member Functions | |
| constexpr | StrideIterator () noexcept |
| Default construct as zero, stride 1. More... | |
| constexpr | StrideIterator (value_type val, value_type stride) noexcept |
| Construct with specified value and stride. No checks (ie, possible to have a 0 stride!) More... | |
| constexpr value_type | operator* () const noexcept |
| Return the value. More... | |
| constexpr value_type | operator[] (value_type n) const noexcept |
| Offset dereference operator. More... | |
| StrideIterator & | operator++ () noexcept |
| Prefix increment. More... | |
| StrideIterator | operator++ (int) noexcept |
| Postfix increment. More... | |
| StrideIterator & | operator-- () noexcept |
| Prefix decrement. More... | |
| StrideIterator | operator-- (int) noexcept |
| Postfix decrement. More... | |
| StrideIterator & | operator+= (value_type n) noexcept |
| Arbitrary increment. More... | |
| StrideIterator & | operator-= (value_type n) noexcept |
| Arbitrary decrement. More... | |
| constexpr StrideIterator | operator+ (value_type n) const noexcept |
| Return iterator with offset. More... | |
| constexpr StrideIterator | operator- (value_type n) const noexcept |
| Return iterator with offset. More... | |
| constexpr value_type | operator- (const StrideIterator &iter) const noexcept |
| Difference operator. More... | |
| constexpr bool | operator== (const StrideIterator &iter) const noexcept |
| Test for equality of values (ignores stride) More... | |
| constexpr bool | operator< (const StrideIterator &iter) const noexcept |
| Compare less-than values (ignores stride) More... | |
| constexpr bool | operator!= (const StrideIterator &iter) const noexcept |
| constexpr bool | operator<= (const StrideIterator &iter) const noexcept |
| constexpr bool | operator> (const StrideIterator &iter) const noexcept |
| constexpr bool | operator>= (const StrideIterator &iter) const noexcept |
A random-access, integer-like, input iterator for integral values with a stride. If the stride is 1, the Foam::IndexIterator would be a better choice.
Definition at line 181 of file StrideIterator.H.
| typedef std::random_access_iterator_tag iterator_category |
Definition at line 188 of file StrideIterator.H.
| typedef IntType value_type |
Definition at line 189 of file StrideIterator.H.
| typedef IntType difference_type |
Definition at line 190 of file StrideIterator.H.
| typedef const IntType* pointer |
Definition at line 191 of file StrideIterator.H.
| typedef IntType reference |
Definition at line 192 of file StrideIterator.H.
|
inlinenoexcept |
Default construct as zero, stride 1.
Definition at line 200 of file StrideIterator.H.
|
inlinenoexcept |
Construct with specified value and stride. No checks (ie, possible to have a 0 stride!)
Definition at line 218 of file StrideIterator.H.
|
inlinenoexcept |
Return the value.
Definition at line 229 of file StrideIterator.H.
References StrideIndexer< IntType >::value().

|
inlinenoexcept |
Offset dereference operator.
Definition at line 237 of file StrideIterator.H.
References n, and StrideIndexer< IntType >::value().

|
inlinenoexcept |
Prefix increment.
Definition at line 245 of file StrideIterator.H.
References StrideIndexer< IntType >::next().

|
inlinenoexcept |
Postfix increment.
Definition at line 254 of file StrideIterator.H.
References StrideIndexer< IntType >::next().

|
inlinenoexcept |
Prefix decrement.
Definition at line 264 of file StrideIterator.H.
References StrideIndexer< IntType >::prev().

|
inlinenoexcept |
Postfix decrement.
Definition at line 273 of file StrideIterator.H.
References StrideIndexer< IntType >::prev().

|
inlinenoexcept |
Arbitrary increment.
Definition at line 283 of file StrideIterator.H.
References n, and StrideIndexer< IntType >::next().

|
inlinenoexcept |
Arbitrary decrement.
Definition at line 292 of file StrideIterator.H.
References n, and StrideIndexer< IntType >::prev().

|
inlinenoexcept |
Return iterator with offset.
Definition at line 302 of file StrideIterator.H.
References n, StrideIndexer< IntType >::stride(), and StrideIndexer< IntType >::value().

|
inlinenoexcept |
Return iterator with offset.
Definition at line 311 of file StrideIterator.H.
References n, StrideIndexer< IntType >::stride(), and StrideIndexer< IntType >::value().

|
inlinenoexcept |
Difference operator.
Definition at line 320 of file StrideIterator.H.
References StrideIndexer< IntType >::stride(), and StrideIndexer< IntType >::value().

|
inlinenoexcept |
Test for equality of values (ignores stride)
Definition at line 337 of file StrideIterator.H.
References StrideIndexer< IntType >::value().

|
inlinenoexcept |
Compare less-than values (ignores stride)
Definition at line 346 of file StrideIterator.H.
References StrideIndexer< IntType >::value().

|
inlinenoexcept |
Definition at line 355 of file StrideIterator.H.
|
inlinenoexcept |
Definition at line 361 of file StrideIterator.H.
|
inlinenoexcept |
Definition at line 367 of file StrideIterator.H.
|
inlinenoexcept |
Definition at line 373 of file StrideIterator.H.