ARTS  2.3.1285(git:92a29ea9-dirty)
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

◆ operator*()

const ConstTensor3View & ConstIterator4D::operator* ( ) const

Dereferencing.

Definition at line 42 of file matpackIV.cc.

References Iterator4D::msv.

◆ operator++()

ConstIterator4D& ConstIterator4D::operator++ ( )
inline

Prefix increment operator.

Definition at line 93 of file matpackIV.h.

References ConstTensor3View::mdata, Iterator4D::mstride, and Iterator4D::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 Iterator4D::msv.

Member Data Documentation

◆ mstride

Index ConstIterator4D::mstride {0}
private

Stride.

Definition at line 115 of file matpackIV.h.

◆ msv

ConstTensor3View ConstIterator4D::msv
private

Current position.

Definition at line 113 of file matpackIV.h.

Referenced by operator!=().


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