ARTS
2.3.1285(git:92a29ea9-dirty)
|
The constant iterator class for sub vectors. More...
#include <matpackI.h>
Public Types | |
using | difference_type = Index |
using | value_type = const Numeric |
using | pointer = const Numeric * |
using | reference = const Numeric & |
using | iterator_category = std::random_access_iterator_tag |
Public Member Functions | |
ConstIterator1D ()=default | |
Default constructor. More... | |
ConstIterator1D (const 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 {nullptr} |
Current position. More... | |
Index | mstride {0} |
Stride. More... | |
Friends | |
void | copy (ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target) |
The constant iterator class for sub vectors.
This takes into account the defined stride.
Definition at line 420 of file matpackI.h.
Definition at line 422 of file matpackI.h.
using ConstIterator1D::iterator_category = std::random_access_iterator_tag |
Definition at line 426 of file matpackI.h.
using ConstIterator1D::pointer = const Numeric* |
Definition at line 424 of file matpackI.h.
using ConstIterator1D::reference = const Numeric& |
Definition at line 425 of file matpackI.h.
using ConstIterator1D::value_type = const Numeric |
Definition at line 423 of file matpackI.h.
|
default |
Default constructor.
Explicit constructor.
Definition at line 432 of file matpackI.h.
|
inline |
Not equal operator, needed for algorithms like copy.
Definition at line 447 of file matpackI.h.
References copy(), Zeeman::end(), and mx.
|
inline |
Dereferencing.
Definition at line 444 of file matpackI.h.
|
inline |
Prefix increment operator.
Definition at line 438 of file matpackI.h.
|
friend |
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 302 of file matpackI.cc.
|
private |
|
private |
Current position.
Definition at line 460 of file matpackI.h.
Referenced by copy(), and operator!=().