ARTS  2.2.66
ConstIterator3D Class Reference

Const version of Iterator3D. More...

#include <matpackIII.h>

Collaboration diagram for ConstIterator3D:

Public Member Functions

 ConstIterator3D ()
 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
 Stride. More...
 

Detailed Description

Const version of Iterator3D.

Definition at line 78 of file matpackIII.h.

Constructor & Destructor Documentation

◆ ConstIterator3D() [1/2]

ConstIterator3D::ConstIterator3D ( )
inline

Default constructor.

Definition at line 82 of file matpackIII.h.

◆ ConstIterator3D() [2/2]

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

Explicit constructor.

Definition at line 85 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 94 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 112 of file matpackIII.h.

References Iterator3D::msv.

◆ operator++()

ConstIterator3D& ConstIterator3D::operator++ ( )
inline

Prefix increment operator.

Definition at line 91 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 109 of file matpackIII.h.

References Iterator3D::msv.

Member Data Documentation

◆ mstride

Index ConstIterator3D::mstride
private

Stride.

Definition at line 119 of file matpackIII.h.

◆ msv

ConstMatrixView ConstIterator3D::msv
private

Current position.

Definition at line 117 of file matpackIII.h.

Referenced by operator!=().


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