ARTS  2.2.66
Iterator5D Class Reference

Implementation of Tensors of Rank 5. More...

#include <matpackV.h>

Collaboration diagram for Iterator5D:

Public Member Functions

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

Private Attributes

Tensor4View msv
 Current position. More...
 
Index mstride
 Stride. More...
 

Detailed Description

Implementation of Tensors of Rank 5.

Based on Tensor3 by Stefan Buehler.

The five dimensions are called: shelf, book, page, row, column.

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

Definition at line 38 of file matpackV.h.

Constructor & Destructor Documentation

◆ Iterator5D() [1/2]

Iterator5D::Iterator5D ( )
inline

Default constructor.

Definition at line 45 of file matpackV.h.

◆ Iterator5D() [2/2]

Iterator5D::Iterator5D ( const Tensor4View x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 48 of file matpackV.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 56 of file matpackV.h.

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

◆ operator*()

Tensor4View& Iterator5D::operator* ( )
inline

Dereferencing.

Definition at line 78 of file matpackV.h.

References msv.

◆ operator++()

Iterator5D& Iterator5D::operator++ ( )
inline

Prefix increment operator.

Definition at line 53 of file matpackV.h.

References ConstTensor4View::mdata, mstride, and msv.

◆ operator->()

Tensor4View* Iterator5D::operator-> ( )
inline

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

Definition at line 75 of file matpackV.h.

References msv.

Member Data Documentation

◆ mstride

Index Iterator5D::mstride
private

Stride.

Definition at line 84 of file matpackV.h.

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

◆ msv


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