ARTS 2.5.9 (git: 825fa5f2)
Iterator3D Class Reference

Implementation of Tensors of Rank 3. More...

#include <matpackIII.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Implementation of Tensors of Rank 3.

The three dimensions are called: page, row, column.

Author
Stefan Buehler
Date
2001-11-22 The outermost iterator class for rank 3 tensors. This takes into account the defined strided.

Definition at line 37 of file matpackIII.h.

Constructor & Destructor Documentation

◆ Iterator3D() [1/2]

Iterator3D::Iterator3D ( )
default

Default constructor.

◆ Iterator3D() [2/2]

Iterator3D::Iterator3D ( const MatrixView x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 44 of file matpackIII.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 56 of file matpackIII.h.

References ConstMatrixView::mcr, ConstMatrixView::mdata, ConstMatrixView::mrr, Range::mstart, and msv.

◆ operator*()

MatrixView & Iterator3D::operator* ( )
inline

Dereferencing.

Definition at line 68 of file matpackIII.h.

References msv.

◆ operator++()

Iterator3D & Iterator3D::operator++ ( )
inline

Prefix increment operator.

Definition at line 50 of file matpackIII.h.

References ConstMatrixView::mdata, mstride, and msv.

◆ operator->()

MatrixView * Iterator3D::operator-> ( )
inline

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

Definition at line 65 of file matpackIII.h.

References msv.

Member Data Documentation

◆ mstride

Index Iterator3D::mstride {0}
private

Stride.

Definition at line 74 of file matpackIII.h.

Referenced by operator++().

◆ msv

MatrixView Iterator3D::msv
private

Current position.

Definition at line 72 of file matpackIII.h.

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


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