Iterator2D Class Reference

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

#include <matpackI.h>

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.
VectorView *const operator-> ()
 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 335 of file matpackI.h.


Constructor & Destructor Documentation

Iterator2D::Iterator2D (  )  [inline]

Default constructor.

Definition at line 822 of file matpackI.h.

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

Copy constructor.

Definition at line 828 of file matpackI.h.

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

Explicit constructor.

Definition at line 835 of file matpackI.h.


Member Function Documentation

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

Prefix increment operator.

Definition at line 842 of file matpackI.h.

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

Not equal operator, needed for algorithms like copy.

Definition at line 849 of file matpackI.h.

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

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

Definition at line 860 of file matpackI.h.

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

Dereferencing.

Definition at line 866 of file matpackI.h.


Member Data Documentation

Current position.

Definition at line 350 of file matpackI.h.

Row stride.

Definition at line 352 of file matpackI.h.


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

Generated on Wed Feb 4 08:17:31 2009 for ARTS by  doxygen 1.5.6