MeVisLab Toolbox Reference
ml::Cslice_iter< T > Class Template Reference

Templated support class for class MatrixTemplate to allow fast element access organisation by slicing using const references This auxiliary class allows the access to matrix elements stored in an valarray by std::... algorithms using the itterator programming model. More...

#include <mlMatrixTemplate.h>

Public Member Functions

 Cslice_iter (std::valarray< T > *vv, std::slice ss)
 constructor: initialising slice-itterator for val-array
 
Cslice_iter< Tend () const
 returns itterator positioned on last-plus-one element
 
incrementor
Cslice_iter< T > & operator++ ()
 standard itterator incrementation
 
Cslice_iter< Toperator++ (int)
 standard itterator incrementation
 
access
const Toperator[] (size_t i) const
 C style subscript.
 
const Toperator() (size_t i) const
 Fortran-style subscript.
 
const Toperator* () const
 current element
 

Friends

comparison operators (free auxilary functions)
bool operator== (const Cslice_iter< T > &p, const Cslice_iter< T > &q)
 overload operator==(.,.) for Cslice_iter objects
 
bool operator!= (const Cslice_iter< T > &p, const Cslice_iter< T > &q)
 overload operator!=(.,.) for Cslice_iter objects
 
bool operator< (const Cslice_iter< T > &p, const Cslice_iter< T > &q)
 overload operator<(.,.) for Cslice_iter objects
 

Detailed Description

template<class T>
class ml::Cslice_iter< T >

Templated support class for class MatrixTemplate to allow fast element access organisation by slicing using const references This auxiliary class allows the access to matrix elements stored in an valarray by std::... algorithms using the itterator programming model.

Definition at line 121 of file mlMatrixTemplate.h.

Constructor & Destructor Documentation

◆ Cslice_iter()

template<class T >
ml::Cslice_iter< T >::Cslice_iter ( std::valarray< T > * vv,
std::slice ss )
inline

constructor: initialising slice-itterator for val-array

Definition at line 131 of file mlMatrixTemplate.h.

Member Function Documentation

◆ end()

template<class T >
Cslice_iter< T > ml::Cslice_iter< T >::end ( ) const
inline

returns itterator positioned on last-plus-one element

Definition at line 134 of file mlMatrixTemplate.h.

◆ operator()()

template<class T >
const T & ml::Cslice_iter< T >::operator() ( size_t i) const
inline

Fortran-style subscript.

Definition at line 150 of file mlMatrixTemplate.h.

References mlrange_cast().

◆ operator*()

template<class T >
const T & ml::Cslice_iter< T >::operator* ( ) const
inline

current element

Definition at line 151 of file mlMatrixTemplate.h.

◆ operator++() [1/2]

template<class T >
Cslice_iter< T > & ml::Cslice_iter< T >::operator++ ( )
inline

standard itterator incrementation

Definition at line 143 of file mlMatrixTemplate.h.

◆ operator++() [2/2]

template<class T >
Cslice_iter< T > ml::Cslice_iter< T >::operator++ ( int )
inline

standard itterator incrementation

Definition at line 144 of file mlMatrixTemplate.h.

◆ operator[]()

template<class T >
const T & ml::Cslice_iter< T >::operator[] ( size_t i) const
inline

C style subscript.

Definition at line 149 of file mlMatrixTemplate.h.

References mlrange_cast().

Friends And Related Symbol Documentation

◆ operator!=

template<class T >
bool operator!= ( const Cslice_iter< T > & p,
const Cslice_iter< T > & q )
friend

overload operator!=(.,.) for Cslice_iter objects

Parameters
qnon-equal

Definition at line 170 of file mlMatrixTemplate.h.

◆ operator<

template<class T >
bool operator< ( const Cslice_iter< T > & p,
const Cslice_iter< T > & q )
friend

overload operator<(.,.) for Cslice_iter objects

Parameters
qless

Definition at line 176 of file mlMatrixTemplate.h.

◆ operator==

template<class T >
bool operator== ( const Cslice_iter< T > & p,
const Cslice_iter< T > & q )
friend

overload operator==(.,.) for Cslice_iter objects

Parameters
qequal

Definition at line 162 of file mlMatrixTemplate.h.


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