ARTS 2.5.9 (git: 825fa5f2)
ConstIterator2D Class Reference

The const row iterator class for sub matrices. More...

#include <matpackI.h>

Public Member Functions

 ConstIterator2D ()=default
 Default constructor. More...
 
 ConstIterator2D (ConstVectorView x, Index stride) ARTS_NOEXCEPT
 Explicit constructor. More...
 
ConstIterator2Doperator++ () ARTS_NOEXCEPT
 Prefix increment operator. More...
 
bool operator!= (const ConstIterator2D &other) const ARTS_NOEXCEPT
 Not equal operator, needed for algorithms like copy. More...
 
const ConstVectorViewoperator-> () const ARTS_NOEXCEPT
 The -> operator is needed, so that we can write i->begin() to get the 1D iterators. More...
 
const ConstVectorViewoperator* () const ARTS_NOEXCEPT
 Dereferencing. More...
 

Private Attributes

ConstVectorView msv
 Current position. More...
 
Index mstride {0}
 Row stride. More...
 

Detailed Description

The const row iterator class for sub matrices.

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 859 of file matpackI.h.

Constructor & Destructor Documentation

◆ ConstIterator2D() [1/2]

ConstIterator2D::ConstIterator2D ( )
default

Default constructor.

◆ ConstIterator2D() [2/2]

ConstIterator2D::ConstIterator2D ( ConstVectorView  x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 866 of file matpackI.h.

Member Function Documentation

◆ operator!=()

bool ConstIterator2D::operator!= ( const ConstIterator2D other) const
inline

Not equal operator, needed for algorithms like copy.

Definition at line 879 of file matpackI.h.

◆ operator*()

const ConstVectorView & ConstIterator2D::operator* ( ) const
inline

Dereferencing.

Definition at line 891 of file matpackI.h.

◆ operator++()

ConstIterator2D & ConstIterator2D::operator++ ( )
inline

Prefix increment operator.

Definition at line 873 of file matpackI.h.

◆ operator->()

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 888 of file matpackI.h.

Member Data Documentation

◆ mstride

Index ConstIterator2D::mstride {0}
private

Row stride.

Definition at line 897 of file matpackI.h.

◆ msv

ConstVectorView ConstIterator2D::msv
private

Current position.

Definition at line 895 of file matpackI.h.


The documentation for this class was generated from the following file: