Iterator2D Class Reference

The row iterator class for sub matrices. More...

#include <matpackI.h>

Collaboration diagram for Iterator2D:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

VectorView msv
 Current position.
Index mstride
 Row stride.


Detailed Description

The row iterator class for sub matrices.

This takes into account the defined row stride. The iterator points to a row of the matrix, which acts just like a VectorView.

Definition at line 450 of file matpackI.h.


Constructor & Destructor Documentation

Iterator2D::Iterator2D (  )  [inline]

Default constructor.

Definition at line 454 of file matpackI.h.

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

Copy constructor.

Definition at line 457 of file matpackI.h.

Iterator2D::Iterator2D ( const VectorView x,
Index  stride 
) [inline]

Explicit constructor.

Definition at line 461 of file matpackI.h.


Member Function Documentation

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

Prefix increment operator.

Definition at line 466 of file matpackI.h.

References ConstVectorView::mdata, mstride, and msv.

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

Not equal operator, needed for algorithms like copy.

Definition at line 469 of file matpackI.h.

References ConstVectorView::mdata, ConstVectorView::mrange, Range::mstart, and msv.

VectorView* Iterator2D::operator-> (  )  [inline]

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

Definition at line 479 of file matpackI.h.

References msv.

VectorView& Iterator2D::operator* (  )  [inline]

Dereferencing.

Definition at line 482 of file matpackI.h.

References msv.


Member Data Documentation

Current position.

Definition at line 486 of file matpackI.h.

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

Row stride.

Definition at line 488 of file matpackI.h.

Referenced by operator++().


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

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