ARTS 2.5.10 (git: 2f1c442c)
|
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. | |
ConstIterator1D (const Numeric *x, Index stride) ARTS_NOEXCEPT | |
Explicit constructor. | |
ConstIterator1D & | operator++ () ARTS_NOEXCEPT |
Prefix increment operator. | |
const Numeric & | operator* () const ARTS_NOEXCEPT |
Dereferencing. | |
bool | operator!= (const ConstIterator1D &other) const ARTS_NOEXCEPT |
Not equal operator, needed for algorithms like copy. | |
bool | operator== (const ConstIterator1D &other) const ARTS_NOEXCEPT |
Index | operator- (const ConstIterator1D &other) const ARTS_NOEXCEPT |
Private Attributes | |
const Numeric * | mx {nullptr} |
Current position. | |
Index | mstride {0} |
Stride. | |
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 458 of file matpackI.h.
Definition at line 460 of file matpackI.h.
using ConstIterator1D::iterator_category = std::random_access_iterator_tag |
Definition at line 464 of file matpackI.h.
using ConstIterator1D::pointer = const Numeric* |
Definition at line 462 of file matpackI.h.
using ConstIterator1D::reference = const Numeric& |
Definition at line 463 of file matpackI.h.
using ConstIterator1D::value_type = const Numeric |
Definition at line 461 of file matpackI.h.
|
default |
Default constructor.
Explicit constructor.
Definition at line 470 of file matpackI.h.
|
inline |
Not equal operator, needed for algorithms like copy.
Definition at line 486 of file matpackI.h.
References mx.
Referenced by operator==().
|
inline |
|
inline |
|
inline |
Definition at line 495 of file matpackI.h.
|
inline |
Definition at line 491 of file matpackI.h.
References operator!=().
|
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 288 of file matpackI.cc.
|
private |
|
private |
Current position.
Definition at line 505 of file matpackI.h.
Referenced by operator!=(), operator*(), operator++(), and operator-().