ARTS  2.3.1285(git:92a29ea9-dirty)
ComplexIterator2D Class Reference

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

#include <complex.h>

Public Member Functions

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

Private Attributes

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

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 ComplexVectorView.

Definition at line 478 of file complex.h.

Constructor & Destructor Documentation

◆ ComplexIterator2D() [1/2]

ComplexIterator2D::ComplexIterator2D ( )
default

Default constructor.

◆ ComplexIterator2D() [2/2]

ComplexIterator2D::ComplexIterator2D ( const ComplexVectorView x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 485 of file complex.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 497 of file complex.h.

References ConstComplexVectorView::mdata, ConstComplexVectorView::mrange, Range::mstart, and msv.

◆ operator*()

ComplexVectorView& ComplexIterator2D::operator* ( )
inline

Dereferencing.

Definition at line 510 of file complex.h.

◆ operator++()

ComplexIterator2D& ComplexIterator2D::operator++ ( )
inline

Prefix increment operator.

Definition at line 491 of file complex.h.

References ComplexIterator1D::mstride.

◆ operator->()

ComplexVectorView* ComplexIterator2D::operator-> ( )
inline

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

Definition at line 507 of file complex.h.

Member Data Documentation

◆ mstride

Index ComplexIterator2D::mstride {0}
private

Row stride.

Definition at line 516 of file complex.h.

◆ msv

ComplexVectorView ComplexIterator2D::msv
private

Current position.

Definition at line 514 of file complex.h.

Referenced by operator!=().


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