ARTS 2.5.10 (git: 2f1c442c)
Iterator2D Class Reference

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

#include <matpackI.h>

Public Member Functions

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

Private Attributes

VectorView msv
 Current position.
 
Index mstride {0}
 Row stride.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Iterator2D() [1/2]

Iterator2D::Iterator2D ( )
default

Default constructor.

◆ Iterator2D() [2/2]

Iterator2D::Iterator2D ( const VectorView x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 822 of file matpackI.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 835 of file matpackI.h.

◆ operator*()

VectorView & Iterator2D::operator* ( )
inline

Dereferencing.

Definition at line 847 of file matpackI.h.

◆ operator++()

Iterator2D & Iterator2D::operator++ ( )
inline

Prefix increment operator.

Definition at line 829 of file matpackI.h.

◆ operator->()

VectorView * Iterator2D::operator-> ( )
inline

The -> operator is needed, so that we can write i->begin() to get the 1D iterators.

Definition at line 844 of file matpackI.h.

Member Data Documentation

◆ mstride

Index Iterator2D::mstride {0}
private

Row stride.

Definition at line 853 of file matpackI.h.

◆ msv

VectorView Iterator2D::msv
private

Current position.

Definition at line 851 of file matpackI.h.


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