ARTS
2.3.1285(git:92a29ea9-dirty)
|
The iterator class for sub vectors. More...
#include <matpackI.h>
Public Types | |
using | difference_type = Index |
using | value_type = Numeric |
using | pointer = Numeric * |
using | reference = Numeric & |
using | iterator_category = std::random_access_iterator_tag |
Public Member Functions | |
Iterator1D ()=default | |
Default constructor. More... | |
Iterator1D (Numeric *x, Index stride) | |
Explicit constructor. More... | |
Iterator1D & | operator++ () |
Prefix increment operator. More... | |
Numeric & | operator* () const |
Dereferencing. More... | |
bool | operator!= (const Iterator1D &other) const |
Not equal operator, needed for algorithms like copy. More... | |
Private Attributes | |
Numeric * | mx {nullptr} |
Current position. More... | |
Index | mstride {0} |
Stride. More... | |
Friends | |
void | copy (ConstIterator1D origin, const ConstIterator1D &end, Iterator1D 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 360 of file matpackI.h.
using Iterator1D::difference_type = Index |
Definition at line 362 of file matpackI.h.
using Iterator1D::iterator_category = std::random_access_iterator_tag |
Definition at line 366 of file matpackI.h.
using Iterator1D::pointer = Numeric* |
Definition at line 364 of file matpackI.h.
using Iterator1D::reference = Numeric& |
Definition at line 365 of file matpackI.h.
using Iterator1D::value_type = Numeric |
Definition at line 363 of file matpackI.h.
|
default |
Default constructor.
Explicit constructor.
Definition at line 372 of file matpackI.h.
|
inline |
Not equal operator, needed for algorithms like copy.
Definition at line 388 of file matpackI.h.
References copy(), Zeeman::end(), mx, operator!=(), operator-(), and operator==().
|
inline |
Dereferencing.
Definition at line 385 of file matpackI.h.
|
inline |
Prefix increment operator.
Definition at line 379 of file matpackI.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 302 of file matpackI.cc.
|
private |
|
private |
Current position.
Definition at line 413 of file matpackI.h.
Referenced by copy(), and operator!=().