ARTS 2.5.4 (git: 4c0d3b4d)
ConstComplexIterator2D Class Reference

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

#include <matpack_complex.h>

Public Member Functions

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

Private Attributes

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

Definition at line 542 of file matpack_complex.h.

Constructor & Destructor Documentation

◆ ConstComplexIterator2D() [1/2]

ConstComplexIterator2D::ConstComplexIterator2D ( )
default

Default constructor.

◆ ConstComplexIterator2D() [2/2]

ConstComplexIterator2D::ConstComplexIterator2D ( ConstComplexVectorView  x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 549 of file matpack_complex.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 561 of file matpack_complex.h.

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

◆ operator*()

const ConstComplexVectorView & ConstComplexIterator2D::operator* ( ) const
inline

Dereferencing.

Definition at line 573 of file matpack_complex.h.

◆ operator++()

ConstComplexIterator2D & ConstComplexIterator2D::operator++ ( )
inline

Prefix increment operator.

Definition at line 555 of file matpack_complex.h.

◆ operator->()

const ConstComplexVectorView * ConstComplexIterator2D::operator-> ( ) const
inline

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

Definition at line 570 of file matpack_complex.h.

Member Data Documentation

◆ mstride

Index ConstComplexIterator2D::mstride {0}
private

Row stride.

Definition at line 579 of file matpack_complex.h.

◆ msv

ConstComplexVectorView ConstComplexIterator2D::msv
private

Current position.

Definition at line 577 of file matpack_complex.h.

Referenced by operator!=().


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