ARTS  2.4.0(git:4fb77825)
Iterator7D Class Reference

Implementation of Tensors of Rank 7. More...

#include <matpackVII.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Implementation of Tensors of Rank 7.

Dimensions are called: library, vitrine, shelf, book, page, row, column. or short: l, v, s, b, p, r, c

Author
Stefan Buehler
Date
2001-11-22 The outermost iterator class for rank 7 tensors. This takes into account the defined strided.

Definition at line 36 of file matpackVII.h.

Constructor & Destructor Documentation

◆ Iterator7D() [1/2]

Iterator7D::Iterator7D ( )
default

Default constructor.

◆ Iterator7D() [2/2]

Iterator7D::Iterator7D ( const Tensor6View x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 43 of file matpackVII.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

FIXME: Is it really necessary to have such a complicated check here? It could be sufficient to just test msv.mdata!=other.msv.mdata.

Definition at line 58 of file matpackVII.h.

References ConstTensor6View::mbr, ConstTensor6View::mcr, ConstTensor6View::mdata, ConstTensor6View::mpr, ConstTensor6View::mrr, ConstTensor6View::msr, Range::mstart, msv, and ConstTensor6View::mvr.

◆ operator*()

Tensor6View& Iterator7D::operator* ( )
inline

Dereferencing.

Definition at line 74 of file matpackVII.h.

References msv.

◆ operator++()

Iterator7D& Iterator7D::operator++ ( )
inline

Prefix increment operator.

Definition at line 49 of file matpackVII.h.

References ConstTensor6View::mdata, mstride, and msv.

◆ operator->()

Tensor6View* Iterator7D::operator-> ( )
inline

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

Definition at line 71 of file matpackVII.h.

References msv.

Member Data Documentation

◆ mstride

Index Iterator7D::mstride {0}
private

Stride.

Definition at line 80 of file matpackVII.h.

Referenced by operator++().

◆ msv

Tensor6View Iterator7D::msv
private

Current position.

Definition at line 78 of file matpackVII.h.

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


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