ARTS 2.5.9 (git: 825fa5f2)
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-01 The outermost iterator class for rank 5 tensors. This takes into account the defined strided.

Definition at line 41 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 51 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 63 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 77 of file matpackV.h.

References msv.

◆ operator++()

Iterator5D & Iterator5D::operator++ ( )
inline

Prefix increment operator.

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

References msv.

Member Data Documentation

◆ mstride

Index Iterator5D::mstride {0}
private

Stride.

Definition at line 83 of file matpackV.h.

Referenced by operator++().

◆ msv

Tensor4View Iterator5D::msv
private

Current position.

Definition at line 81 of file matpackV.h.

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


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