ARTS  2.2.66
ConstIterator4D Class Reference

Const version of Iterator4D. More...

#include <matpackIV.h>

Public Member Functions

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

Private Attributes

ConstTensor3View msv
 Current position. More...
 
Index mstride
 Stride. More...
 

Detailed Description

Const version of Iterator4D.

Definition at line 80 of file matpackIV.h.

Constructor & Destructor Documentation

◆ ConstIterator4D() [1/2]

ConstIterator4D::ConstIterator4D ( )
inline

Default constructor.

Definition at line 87 of file matpackIV.h.

◆ ConstIterator4D() [2/2]

ConstIterator4D::ConstIterator4D ( const ConstTensor3View x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 90 of file matpackIV.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 99 of file matpackIV.h.

References ConstTensor3View::mcr, ConstTensor3View::mdata, ConstTensor3View::mpr, ConstTensor3View::mrr, Range::mstart, and msv.

◆ operator*()

const ConstTensor3View & ConstIterator4D::operator* ( ) const

Dereferencing.

Definition at line 52 of file matpackIV.cc.

References msv.

◆ operator++()

ConstIterator4D& ConstIterator4D::operator++ ( )
inline

Prefix increment operator.

Definition at line 96 of file matpackIV.h.

References ConstTensor3View::mdata, mstride, and msv.

◆ operator->()

const ConstTensor3View * ConstIterator4D::operator-> ( ) const

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

Definition at line 46 of file matpackIV.cc.

References msv.

Member Data Documentation

◆ mstride

Index ConstIterator4D::mstride
private

Stride.

Definition at line 121 of file matpackIV.h.

Referenced by operator++().

◆ msv

ConstTensor3View ConstIterator4D::msv
private

Current position.

Definition at line 119 of file matpackIV.h.

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


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