ARTS 2.5.9 (git: 825fa5f2)
ConstIterator3D Class Reference

Const version of Iterator3D. More...

#include <matpackIII.h>

Public Member Functions

 ConstIterator3D ()=default
 Default constructor. More...
 
 ConstIterator3D (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 78 of file matpackIII.h.

Constructor & Destructor Documentation

◆ ConstIterator3D() [1/2]

ConstIterator3D::ConstIterator3D ( )
default

Default constructor.

◆ ConstIterator3D() [2/2]

ConstIterator3D::ConstIterator3D ( 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 97 of file matpackIII.h.

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

◆ operator*()

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

Dereferencing.

Definition at line 109 of file matpackIII.h.

References msv.

◆ operator++()

ConstIterator3D & ConstIterator3D::operator++ ( )
inline

Prefix increment operator.

Definition at line 91 of file matpackIII.h.

References ConstMatrixView::mdata, mstride, and 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 106 of file matpackIII.h.

References msv.

Member Data Documentation

◆ mstride

Index ConstIterator3D::mstride {0}
private

Stride.

Definition at line 115 of file matpackIII.h.

Referenced by operator++().

◆ msv

ConstMatrixView ConstIterator3D::msv
private

Current position.

Definition at line 113 of file matpackIII.h.

Referenced by operator!=(), operator*(), operator++(), and operator->().


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