ARTS
2.4.0(git:4fb77825)
|
The constant iterator class for sub vectors. More...
#include <complex.h>
Public Member Functions | |
ConstComplexIterator1D ()=default | |
Default constructor. More... | |
ConstComplexIterator1D (Complex *x, Index stride) | |
Explicit constructor. More... | |
ConstComplexIterator1D & | operator++ () |
Prefix increment operator. More... | |
const Complex & | operator* () const |
Dereferencing. More... | |
bool | operator!= (const ConstComplexIterator1D &other) const |
Not equal operator, needed for algorithms like copy. More... | |
Private Attributes | |
const 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 constant iterator class for sub vectors.
This takes into account the defined stride.
|
default |
Default constructor.
|
inline |
|
inline |
|
inline |
|
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 478 of file complex.cc.
|
private |
|
private |
Current position.
Definition at line 252 of file complex.h.
Referenced by copy(), operator!=(), operator*(), and operator++().