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

Const version of Iterator3D. More...

#include <matpackIII.h>

Public Member Functions

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

Private Attributes

ConstMatrixView msv
 Current position. More...
 
Index mstride {0}
 Stride. More...
 

Detailed Description

Const version of Iterator3D.

Definition at line 76 of file matpackIII.h.

Constructor & Destructor Documentation

◆ ConstIterator3D() [1/2]

ConstIterator3D::ConstIterator3D ( )
default

Default constructor.

◆ ConstIterator3D() [2/2]

ConstIterator3D::ConstIterator3D ( const ConstMatrixView x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 83 of file matpackIII.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 95 of file matpackIII.h.

References ConstMatrixView::mcr, ConstMatrixView::mdata, ConstMatrixView::mrr, Range::mstart, Iterator3D::msv, and msv.

◆ operator*()

const ConstMatrixView& ConstIterator3D::operator* ( ) const
inline

Dereferencing.

Definition at line 108 of file matpackIII.h.

References Iterator3D::msv.

◆ operator++()

ConstIterator3D& ConstIterator3D::operator++ ( )
inline

Prefix increment operator.

Definition at line 89 of file matpackIII.h.

References ConstMatrixView::mdata, Iterator3D::mstride, and Iterator3D::msv.

◆ operator->()

const ConstMatrixView* ConstIterator3D::operator-> ( ) const
inline

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

Definition at line 105 of file matpackIII.h.

References Iterator3D::msv.

Member Data Documentation

◆ mstride

Index ConstIterator3D::mstride {0}
private

Stride.

Definition at line 114 of file matpackIII.h.

◆ msv

ConstMatrixView ConstIterator3D::msv
private

Current position.

Definition at line 112 of file matpackIII.h.

Referenced by operator!=().


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