#include <matpackI.h>
Public Member Functions | |
| ConstIterator2D () | |
| Default constructor. | |
| ConstIterator2D (const ConstIterator2D &o) | |
| Copy constructor. | |
| ConstIterator2D (const ConstVectorView &x, Index stride) | |
| Explicit constructor. | |
| ConstIterator2D & | operator++ () |
| Prefix increment operator. | |
| bool | operator!= (const ConstIterator2D &other) const |
| Not equal operator, needed for algorithms like copy. | |
| const ConstVectorView * | operator-> () const |
| The -> operator is needed, so that we can write i->begin() to get the 1D iterators. | |
| const ConstVectorView & | operator* () const |
| Dereferencing. | |
Private Attributes | |
| ConstVectorView | 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 358 of file matpackI.h.
| ConstIterator2D::ConstIterator2D | ( | ) | [inline] |
| ConstIterator2D::ConstIterator2D | ( | const ConstIterator2D & | o | ) | [inline] |
| ConstIterator2D::ConstIterator2D | ( | const ConstVectorView & | x, | |
| Index | stride | |||
| ) | [inline] |
| ConstIterator2D & ConstIterator2D::operator++ | ( | ) | [inline] |
| bool ConstIterator2D::operator!= | ( | const ConstIterator2D & | other | ) | const [inline] |
| const ConstVectorView * ConstIterator2D::operator-> | ( | ) | const [inline] |
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
Definition at line 913 of file matpackI.h.
| const ConstVectorView & ConstIterator2D::operator* | ( | ) | const [inline] |
ConstVectorView ConstIterator2D::msv [private] |
Index ConstIterator2D::mstride [private] |
1.5.6