ARTS  1.0.222
Public Member Functions | Private Attributes | List of all members
Iterator1D Class Reference

The iterator class for sub vectors. More...

#include <matpackI.h>

Public Member Functions

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

Private Attributes

Numericmx
 Current position. More...
 
Index mstride
 Stride. More...
 

Detailed Description

The iterator class for sub vectors.

This takes into account the defined stride.

Definition at line 178 of file matpackI.h.

Constructor & Destructor Documentation

◆ Iterator1D() [1/3]

Iterator1D::Iterator1D ( )
inline

Default constructor.

Definition at line 732 of file matpackI.h.

◆ Iterator1D() [2/3]

Iterator1D::Iterator1D ( const Iterator1D o)
inline

Copy constructor.

Definition at line 738 of file matpackI.h.

◆ Iterator1D() [3/3]

Iterator1D::Iterator1D ( Numeric x,
Index  stride 
)
inline

Explicit constructor.

Definition at line 745 of file matpackI.h.

Member Function Documentation

◆ operator!=()

bool Iterator1D::operator!= ( const Iterator1D other) const
inline

Not equal operator, needed for algorithms like copy.

Definition at line 759 of file matpackI.h.

◆ operator*()

Numeric & Iterator1D::operator* ( ) const
inline

Dereferencing.

Definition at line 768 of file matpackI.h.

◆ operator++()

Iterator1D & Iterator1D::operator++ ( )
inline

Prefix increment operator.

Definition at line 752 of file matpackI.h.

Member Data Documentation

◆ mstride

Index Iterator1D::mstride
private

Stride.

Definition at line 194 of file matpackI.h.

◆ mx

Numeric* Iterator1D::mx
private

Current position.

Definition at line 192 of file matpackI.h.


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