ARTS  2.3.1285(git:92a29ea9-dirty)
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-22The outermost iterator class for rank 3 tensors. This takes into account the defined strided.

Definition at line 34 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 41 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 53 of file matpackIII.h.

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

◆ operator*()

MatrixView& Iterator3D::operator* ( )
inline

Dereferencing.

Definition at line 66 of file matpackIII.h.

References msv.

◆ operator++()

Iterator3D& Iterator3D::operator++ ( )
inline

Prefix increment operator.

Definition at line 47 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 63 of file matpackIII.h.

References msv.

Member Data Documentation

◆ mstride

Index Iterator3D::mstride {0}
private

Stride.

Definition at line 72 of file matpackIII.h.

Referenced by operator++(), and ConstIterator3D::operator++().

◆ msv


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