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

The constant iterator class for sub vectors. More...

#include <matpackI.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

The constant iterator class for sub vectors.

This takes into account the defined stride.

Definition at line 199 of file matpackI.h.

Constructor & Destructor Documentation

◆ ConstIterator1D() [1/3]

ConstIterator1D::ConstIterator1D ( )
inline

Default constructor.

Definition at line 777 of file matpackI.h.

◆ ConstIterator1D() [2/3]

ConstIterator1D::ConstIterator1D ( const ConstIterator1D o)
inline

Copy constructor.

Definition at line 783 of file matpackI.h.

◆ ConstIterator1D() [3/3]

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

Explicit constructor.

Definition at line 790 of file matpackI.h.

Member Function Documentation

◆ operator!=()

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

Not equal operator, needed for algorithms like copy.

Definition at line 804 of file matpackI.h.

◆ operator*()

const Numeric & ConstIterator1D::operator* ( ) const
inline

Dereferencing.

Definition at line 813 of file matpackI.h.

◆ operator++()

ConstIterator1D & ConstIterator1D::operator++ ( )
inline

Prefix increment operator.

Definition at line 797 of file matpackI.h.

Member Data Documentation

◆ mstride

Index ConstIterator1D::mstride
private

Stride.

Definition at line 215 of file matpackI.h.

◆ mx

const Numeric* ConstIterator1D::mx
private

Current position.

Definition at line 213 of file matpackI.h.


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