Iterator4D Class Reference

Implementation of Tensors of Rank 4. More...

#include <matpackIV.h>

Collaboration diagram for Iterator4D:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Iterator4D ()
 Default constructor.
 Iterator4D (const Iterator4D &o)
 Copy constructor.
 Iterator4D (const Tensor3View &x, Index stride)
 Explicit constructor.
Iterator4Doperator++ ()
 Prefix increment operator.
bool operator!= (const Iterator4D &other) const
 Not equal operator, needed for algorithms like copy.
Tensor3Viewoperator-> ()
 The -> operator is needed, so that we can write i->begin() to get the 3D iterators.
Tensor3Viewoperator* ()
 Dereferencing.

Private Attributes

Tensor3View msv
 Current position.
Index mstride
 Stride.


Detailed Description

Implementation of Tensors of Rank 4.

Based on Tensor3 by Stefan Buehler.

The four dimensions are called: book, page, row, column.

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

Definition at line 38 of file matpackIV.h.


Constructor & Destructor Documentation

Iterator4D::Iterator4D (  )  [inline]

Default constructor.

Definition at line 42 of file matpackIV.h.

Iterator4D::Iterator4D ( const Iterator4D o  )  [inline]

Copy constructor.

Definition at line 45 of file matpackIV.h.

Iterator4D::Iterator4D ( const Tensor3View x,
Index  stride 
) [inline]

Explicit constructor.

Definition at line 49 of file matpackIV.h.


Member Function Documentation

Iterator4D& Iterator4D::operator++ (  )  [inline]

Prefix increment operator.

Definition at line 55 of file matpackIV.h.

References ConstTensor3View::mdata, mstride, and msv.

bool Iterator4D::operator!= ( const Iterator4D other  )  const [inline]

Not equal operator, needed for algorithms like copy.

Definition at line 58 of file matpackIV.h.

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

Tensor3View * Iterator4D::operator-> (  ) 

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

Definition at line 30 of file matpackIV.cc.

References msv.

Tensor3View & Iterator4D::operator* (  ) 

Dereferencing.

Definition at line 36 of file matpackIV.cc.

References msv.


Member Data Documentation

Current position.

Definition at line 78 of file matpackIV.h.

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

Stride.

Definition at line 80 of file matpackIV.h.

Referenced by operator++().


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

Generated on Mon Mar 23 14:07:00 2009 for ARTS by  doxygen 1.5.6