ARTS  2.3.1285(git:92a29ea9-dirty)
ConstIterator6D Class Reference

Const version of Iterator6D. More...

#include <matpackVI.h>

Public Member Functions

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

Private Attributes

ConstTensor5View msv
 Current position. More...
 
Index mstride {0}
 Stride. More...
 

Detailed Description

Const version of Iterator6D.

Definition at line 87 of file matpackVI.h.

Constructor & Destructor Documentation

◆ ConstIterator6D() [1/2]

ConstIterator6D::ConstIterator6D ( )
default

Default constructor.

◆ ConstIterator6D() [2/2]

ConstIterator6D::ConstIterator6D ( const ConstTensor5View x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 94 of file matpackVI.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

FIXME: Is it really necessaary to have such a complicated check here? It could be sufficient to just test msv.mdata!=other.msv.mdata.

Definition at line 109 of file matpackVI.h.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, Iterator6D::msv, and msv.

◆ operator*()

const ConstTensor5View& ConstIterator6D::operator* ( ) const
inline

Dereferencing.

Definition at line 124 of file matpackVI.h.

References Iterator6D::msv.

◆ operator++()

ConstIterator6D& ConstIterator6D::operator++ ( )
inline

Prefix increment operator.

Definition at line 100 of file matpackVI.h.

References ConstTensor5View::mdata, Iterator6D::mstride, and Iterator6D::msv.

◆ operator->()

const ConstTensor5View* ConstIterator6D::operator-> ( ) const
inline

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

Definition at line 121 of file matpackVI.h.

References Iterator6D::msv.

Member Data Documentation

◆ mstride

Index ConstIterator6D::mstride {0}
private

Stride.

Definition at line 130 of file matpackVI.h.

◆ msv

ConstTensor5View ConstIterator6D::msv
private

Current position.

Definition at line 128 of file matpackVI.h.

Referenced by operator!=().


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