#include <matpackI.h>
Public Member Functions | |
Iterator2D () | |
Default constructor. | |
Iterator2D (const Iterator2D &o) | |
Copy constructor. | |
Iterator2D (const VectorView &x, Index stride) | |
Explicit constructor. | |
Iterator2D & | operator++ () |
Prefix increment operator. | |
bool | operator!= (const Iterator2D &other) const |
Not equal operator, needed for algorithms like copy. | |
VectorView * | operator-> () |
The -> operator is needed, so that we can write i->begin() to get the 1D iterators. | |
VectorView & | operator* () |
Dereferencing. | |
Private Attributes | |
VectorView | msv |
Current position. | |
Index | mstride |
Row stride. |
This takes into account the defined row stride. The iterator points to a row of the matrix, which acts just like a VectorView.
Definition at line 450 of file matpackI.h.
Iterator2D::Iterator2D | ( | ) | [inline] |
Iterator2D::Iterator2D | ( | const Iterator2D & | o | ) | [inline] |
Iterator2D::Iterator2D | ( | const VectorView & | x, | |
Index | stride | |||
) | [inline] |
Iterator2D& Iterator2D::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 466 of file matpackI.h.
References ConstVectorView::mdata, mstride, and msv.
bool Iterator2D::operator!= | ( | const Iterator2D & | other | ) | const [inline] |
Not equal operator, needed for algorithms like copy.
Definition at line 469 of file matpackI.h.
References ConstVectorView::mdata, ConstVectorView::mrange, Range::mstart, and msv.
VectorView* Iterator2D::operator-> | ( | ) | [inline] |
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
Definition at line 479 of file matpackI.h.
References msv.
VectorView& Iterator2D::operator* | ( | ) | [inline] |
VectorView Iterator2D::msv [private] |
Current position.
Definition at line 486 of file matpackI.h.
Referenced by operator!=(), operator*(), operator++(), and operator->().
Index Iterator2D::mstride [private] |