ARTS  2.2.66
Iterator3D Class Reference

Implementation of Tensors of Rank 3. More...

#include <matpackIII.h>

Collaboration diagram for Iterator3D:

Public Member Functions

 Iterator3D ()
 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
 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 ( )
inline

Default constructor.

Definition at line 38 of file matpackIII.h.

◆ 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 50 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 46 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
private

Stride.

Definition at line 74 of file matpackIII.h.

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

◆ msv


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