ARTS  2.2.66
ConstIterator6D Class Reference

Const version of Iterator6D. More...

#include <matpackVI.h>

Collaboration diagram for ConstIterator6D:

Public Member Functions

 ConstIterator6D ()
 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
 Stride. More...
 

Detailed Description

Const version of Iterator6D.

Definition at line 90 of file matpackVI.h.

Constructor & Destructor Documentation

◆ ConstIterator6D() [1/2]

ConstIterator6D::ConstIterator6D ( )
inline

Default constructor.

Definition at line 94 of file matpackVI.h.

◆ ConstIterator6D() [2/2]

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

Explicit constructor.

Definition at line 97 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 108 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 132 of file matpackVI.h.

References Iterator6D::msv.

◆ operator++()

ConstIterator6D& ConstIterator6D::operator++ ( )
inline

Prefix increment operator.

Definition at line 102 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 129 of file matpackVI.h.

References Iterator6D::msv.

Member Data Documentation

◆ mstride

Index ConstIterator6D::mstride
private

Stride.

Definition at line 138 of file matpackVI.h.

◆ msv

ConstTensor5View ConstIterator6D::msv
private

Current position.

Definition at line 136 of file matpackVI.h.

Referenced by operator!=().


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