#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 *const | 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 335 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] |
| bool Iterator2D::operator!= | ( | const Iterator2D & | other | ) | const [inline] |
| VectorView *const Iterator2D::operator-> | ( | ) | [inline] |
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
Definition at line 860 of file matpackI.h.
| VectorView & Iterator2D::operator* | ( | ) | [inline] |
VectorView Iterator2D::msv [private] |
Index Iterator2D::mstride [private] |
1.5.6