|
ampsci
High-precision calculations for one- and two-valence atomic systems
|
Iterator with a configurable stride.
Not fully compliant with the standard forward iterator concept, but works with most standard library algorithms. Reverse iterators can be formed with a negative stride. See also ConstStrideIterator.
#include <Array.hpp>
Inheritance diagram for qip::StrideIterator< T >:Public Member Functions | |
| StrideIterator (T *ptr, long stride) | |
| T & | operator* () |
| const T & | operator* () const |
| bool | operator== (const StrideIterator &other) const |
| bool | operator< (const StrideIterator &other) const |
| StrideIterator & | operator++ () |
| StrideIterator & | operator-- () |
| StrideIterator | operator++ (int) |
| StrideIterator | operator-- (int) |
| StrideIterator & | operator+= (long n) |
| StrideIterator & | operator-= (long n) |
| StrideIterator | operator+ (long n) const |
| StrideIterator | operator- (long n) const |
Protected Attributes | |
| T * | m_ptr |
| long | m_stride |