ARTS 2.5.9 (git: 825fa5f2)
Iterator4D Class Reference

Implementation of Tensors of Rank 4. More...

#include <matpackIV.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Implementation of Tensors of Rank 4.

Based on Tensor3 by Stefan Buehler.

The four dimensions are called: book, page, row, column.

Author
Wolfram-Andre Haas
Date
2002-03-01 The outermost iterator class for rank 4 tensors. This takes into account the defined strided.

Definition at line 40 of file matpackIV.h.

Constructor & Destructor Documentation

◆ Iterator4D() [1/2]

Iterator4D::Iterator4D ( )
default

Default constructor.

◆ Iterator4D() [2/2]

Iterator4D::Iterator4D ( const Tensor3View x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 47 of file matpackIV.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 59 of file matpackIV.h.

References ConstTensor3View::mcr, ConstTensor3View::mdata, ConstTensor3View::mpr, ConstTensor3View::mrr, Range::mstart, and msv.

◆ operator*()

Tensor3View & Iterator4D::operator* ( )

Dereferencing.

Definition at line 34 of file matpackIV.cc.

References msv.

◆ operator++()

Iterator4D & Iterator4D::operator++ ( )
inline

Prefix increment operator.

Definition at line 53 of file matpackIV.h.

References ConstTensor3View::mdata, mstride, and msv.

◆ operator->()

Tensor3View * Iterator4D::operator-> ( )

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

Definition at line 31 of file matpackIV.cc.

References msv.

Member Data Documentation

◆ mstride

Index Iterator4D::mstride {0}
private

Stride.

Definition at line 74 of file matpackIV.h.

Referenced by operator++().

◆ msv

Tensor3View Iterator4D::msv
private

Current position.

Definition at line 72 of file matpackIV.h.

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


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