RandomAccessIterator for strided access to array entries.
| RandomAccessIterator | The iterator type used to encapsulate the underlying data. |
strided_iterator is an iterator which represents a pointer into a strided range entries in a underlying array. This iterator is useful for creating a strided sublist of entries from a larger iterator.strided_iterator whose value_type is int and whose values are gather from a counting_array.Definition at line 78 of file strided_iterator.h.
#include <strided_iterator.h>
Public Methods | |
| strided_iterator (void) | |
Null constructor initializes this strided_iterator's stride to zero. | |
| strided_iterator (RandomAccessIterator first, RandomAccessIterator last, difference_type stride) | |
This constructor builds a strided_iterator from a range. More... | |
| iterator | begin (void) const |
| This method returns an iterator pointing to the beginning of this strided sequence of entries. More... | |
| iterator | end (void) const |
| This method returns an iterator pointing to one element past the last of this strided sequence of entries. More... | |
| reference | operator[] (size_type n) const |
| Subscript access to the data contained in this iterator. More... | |
|
inline |
This constructor builds a strided_iterator from a range.
| first | The beginning of the range. |
| last | The end of the range. |
| stride | The stride between consecutive entries in the iterator. |
Definition at line 109 of file strided_iterator.h.
|
inline |
This method returns an iterator pointing to the beginning of this strided sequence of entries.
Definition at line 116 of file strided_iterator.h.
|
inline |
This method returns an iterator pointing to one element past the last of this strided sequence of entries.
Definition at line 125 of file strided_iterator.h.
|
inline |
Subscript access to the data contained in this iterator.
| n | The index of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 138 of file strided_iterator.h.
1.8.6