ARTS  2.3.1285(git:92a29ea9-dirty)
Iterator5D Class Reference

Implementation of Tensors of Rank 5. More...

#include <matpackV.h>

Public Member Functions

 Iterator5D ()=default
 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 {0}
 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 ( )
default

Default constructor.

◆ 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 60 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 75 of file matpackV.h.

References msv.

◆ operator++()

Iterator5D& Iterator5D::operator++ ( )
inline

Prefix increment operator.

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

References msv.

Member Data Documentation

◆ mstride

Index Iterator5D::mstride {0}
private

Stride.

Definition at line 81 of file matpackV.h.

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

◆ msv


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