Iterator1D Class Reference

The iterator class for sub vectors. More...

#include <matpackI.h>

List of all members.

Public Member Functions

 Iterator1D ()
 Default constructor.
 Iterator1D (const Iterator1D &o)
 Copy constructor.
 Iterator1D (Numeric *x, Index stride)
 Explicit constructor.
Iterator1D & operator++ ()
 Prefix increment operator.
Numeric & operator* () const
 Dereferencing.
bool operator!= (const Iterator1D &other) const
 Not equal operator, needed for algorithms like copy.

Private Attributes

Numeric * mx
 Current position.
Index mstride
 Stride.


Detailed Description

The iterator class for sub vectors.

This takes into account the defined stride.

Definition at line 211 of file matpackI.h.


Constructor & Destructor Documentation

Iterator1D::Iterator1D (  )  [inline]

Default constructor.

Definition at line 214 of file matpackI.h.

Iterator1D::Iterator1D ( const Iterator1D &  o  )  [inline]

Copy constructor.

Definition at line 217 of file matpackI.h.

Iterator1D::Iterator1D ( Numeric *  x,
Index  stride 
) [inline]

Explicit constructor.

Definition at line 221 of file matpackI.h.


Member Function Documentation

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

Prefix increment operator.

Definition at line 227 of file matpackI.h.

References mstride, and mx.

Numeric& Iterator1D::operator* (  )  const [inline]

Dereferencing.

Definition at line 231 of file matpackI.h.

References mx.

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

Not equal operator, needed for algorithms like copy.

Definition at line 234 of file matpackI.h.

References mx.


Member Data Documentation

Numeric* Iterator1D::mx [private]

Current position.

Definition at line 240 of file matpackI.h.

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

Stride.

Definition at line 242 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