ARTS  2.0.49
Iterator7D Class Reference

Implementation of Tensors of Rank 7. More...

#include <matpackVII.h>

Public Member Functions

 Iterator7D ()
 Default constructor. More...
 
 Iterator7D (const Iterator7D &o)
 Copy 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
 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 35 of file matpackVII.h.

Constructor & Destructor Documentation

◆ Iterator7D() [1/3]

Iterator7D::Iterator7D ( )
inline

Default constructor.

Definition at line 39 of file matpackVII.h.

◆ Iterator7D() [2/3]

Iterator7D::Iterator7D ( const Iterator7D o)
inline

Copy constructor.

Definition at line 42 of file matpackVII.h.

◆ Iterator7D() [3/3]

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

Explicit constructor.

Definition at line 46 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 57 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 83 of file matpackVII.h.

References msv.

◆ operator++()

Iterator7D& Iterator7D::operator++ ( )
inline

Prefix increment operator.

Definition at line 51 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 80 of file matpackVII.h.

References msv.

Member Data Documentation

◆ mstride

Index Iterator7D::mstride
private

Stride.

Definition at line 89 of file matpackVII.h.

Referenced by operator++().

◆ msv

Tensor6View Iterator7D::msv
private

Current position.

Definition at line 87 of file matpackVII.h.

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


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