ARTS
2.0.49
|
The constant iterator class for sub vectors. More...
#include <matpackI.h>
Public Member Functions | |
ConstIterator1D () | |
Default constructor. More... | |
ConstIterator1D (const ConstIterator1D &o) | |
Copy constructor. More... | |
ConstIterator1D (Numeric *x, Index stride) | |
Explicit constructor. More... | |
ConstIterator1D & | operator++ () |
Prefix increment operator. More... | |
const Numeric & | operator* () const |
Dereferencing. More... | |
bool | operator!= (const ConstIterator1D &other) const |
Not equal operator, needed for algorithms like copy. More... | |
Private Attributes | |
const Numeric * | mx |
Current position. More... | |
Index | mstride |
Stride. More... | |
Friends | |
void | copy (ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target) |
Copy data between begin and end to target. More... | |
The constant iterator class for sub vectors.
This takes into account the defined stride.
Definition at line 253 of file matpackI.h.
|
inline |
Default constructor.
Definition at line 256 of file matpackI.h.
|
inline |
Copy constructor.
Definition at line 260 of file matpackI.h.
Explicit constructor.
Definition at line 264 of file matpackI.h.
|
inline |
Not equal operator, needed for algorithms like copy.
Definition at line 276 of file matpackI.h.
References mx.
|
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 597 of file matpackI.cc.
|
private |
|
private |
Current position.
Definition at line 284 of file matpackI.h.
Referenced by copy(), operator!=(), operator*(), and operator++().