ARTS  2.0.49
Iterator3D Class Reference

Implementation of Tensors of Rank 3. More...

#include <matpackIII.h>

Public Member Functions

 Iterator3D ()
 Default constructor. More...
 
 Iterator3D (const Iterator3D &o)
 Copy 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
 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 34 of file matpackIII.h.

Constructor & Destructor Documentation

◆ Iterator3D() [1/3]

Iterator3D::Iterator3D ( )
inline

Default constructor.

Definition at line 38 of file matpackIII.h.

◆ Iterator3D() [2/3]

Iterator3D::Iterator3D ( const Iterator3D o)
inline

Copy constructor.

Definition at line 41 of file matpackIII.h.

◆ Iterator3D() [3/3]

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

Explicit constructor.

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

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

◆ operator*()

MatrixView& Iterator3D::operator* ( )
inline

Dereferencing.

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

References msv.

Member Data Documentation

◆ mstride

Index Iterator3D::mstride
private

Stride.

Definition at line 78 of file matpackIII.h.

Referenced by operator++().

◆ msv

MatrixView Iterator3D::msv
private

Current position.

Definition at line 76 of file matpackIII.h.

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


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