ARTS 2.5.4 (git: 4c0d3b4d)
|
The iterator class for sub vectors. More...
#include <matpack_complex.h>
Public Member Functions | |
ComplexIterator1D ()=default | |
Default constructor. More... | |
ComplexIterator1D (Complex *x, Index stride) | |
Explicit constructor. More... | |
ComplexIterator1D & | operator++ () |
Prefix increment operator. More... | |
Complex & | operator* () const |
Dereferencing. More... | |
bool | operator!= (const ComplexIterator1D &other) const |
Not equal operator, needed for algorithms like copy. More... | |
Private Attributes | |
Complex * | mx {nullptr} |
Current position. More... | |
Index | mstride {0} |
Stride. More... | |
Friends | |
void | copy (ConstComplexIterator1D origin, const ConstComplexIterator1D &end, ComplexIterator1D target) |
Copy data between begin and end to target. More... | |
The iterator class for sub vectors.
This takes into account the defined stride.
Definition at line 199 of file matpack_complex.h.
|
default |
Default constructor.
Explicit constructor.
Definition at line 205 of file matpack_complex.h.
|
inline |
Not equal operator, needed for algorithms like copy.
Definition at line 221 of file matpack_complex.h.
References mx.
|
inline |
|
inline |
Prefix increment operator.
Definition at line 212 of file matpack_complex.h.
|
friend |
Copy data between begin and end to target.
Target must be a valid area of memory. Note that the strides in the iterators can be different, so that we can for example copy data between different kinds of subvectors.
Definition at line 479 of file matpack_complex.cc.
|
private |
|
private |
Current position.
Definition at line 233 of file matpack_complex.h.
Referenced by operator!=(), operator*(), and operator++().