ARTS  2.4.0(git:4fb77825)
ConstIterator4D Class Reference

Const version of Iterator4D. More...

#include <matpackIV.h>

Public Member Functions

 ConstIterator4D ()=default
 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 {0}
 Stride. More...
 

Detailed Description

Const version of Iterator4D.

Definition at line 77 of file matpackIV.h.

Constructor & Destructor Documentation

◆ ConstIterator4D() [1/2]

ConstIterator4D::ConstIterator4D ( )
default

Default constructor.

◆ ConstIterator4D() [2/2]

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

Explicit constructor.

Definition at line 87 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 42 of file matpackIV.cc.

References msv.

◆ operator++()

ConstIterator4D& ConstIterator4D::operator++ ( )
inline

Prefix increment operator.

Definition at line 93 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 39 of file matpackIV.cc.

References msv.

Member Data Documentation

◆ mstride

Index ConstIterator4D::mstride {0}
private

Stride.

Definition at line 115 of file matpackIV.h.

Referenced by operator++().

◆ msv

ConstTensor3View ConstIterator4D::msv
private

Current position.

Definition at line 113 of file matpackIV.h.

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


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