ARTS 2.5.10 (git: 2f1c442c)
ConstIterator6D Class Reference

Const version of Iterator6D. More...

#include <matpackVI.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Const version of Iterator6D.

Definition at line 89 of file matpackVI.h.

Constructor & Destructor Documentation

◆ ConstIterator6D() [1/2]

ConstIterator6D::ConstIterator6D ( )
default

Default constructor.

◆ ConstIterator6D() [2/2]

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

Explicit constructor.

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

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

◆ operator*()

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

Dereferencing.

Definition at line 125 of file matpackVI.h.

References msv.

◆ operator++()

ConstIterator6D & ConstIterator6D::operator++ ( )
inline

Prefix increment operator.

Definition at line 102 of file matpackVI.h.

References ConstTensor5View::mdata, mstride, and 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 122 of file matpackVI.h.

References msv.

Member Data Documentation

◆ mstride

Index ConstIterator6D::mstride {0}
private

Stride.

Definition at line 131 of file matpackVI.h.

Referenced by operator++().

◆ msv

ConstTensor5View ConstIterator6D::msv
private

Current position.

Definition at line 129 of file matpackVI.h.

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


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