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

Templated support class for class MatrixTemplate to allow fast element access organisation by slicing 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

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

Friends

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

Detailed Description

template<class T>
class ml::Slice_iter< T >

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

Definition at line 49 of file mlMatrixTemplate.h.

Constructor & Destructor Documentation

◆ Slice_iter()

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

constructor: initialising slice-itterator for val-array

Definition at line 58 of file mlMatrixTemplate.h.

Member Function Documentation

◆ end()

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

returns itterator positioned on last-plus-one element

Definition at line 61 of file mlMatrixTemplate.h.

◆ operator()()

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

Fortran-style subscript.

Definition at line 77 of file mlMatrixTemplate.h.

References mlrange_cast().

◆ operator*()

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

current element

Definition at line 78 of file mlMatrixTemplate.h.

◆ operator++() [1/2]

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

standard itterator incrementation

Definition at line 70 of file mlMatrixTemplate.h.

◆ operator++() [2/2]

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

standard itterator incrementation

Definition at line 71 of file mlMatrixTemplate.h.

◆ operator[]()

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

C style subscript.

Definition at line 76 of file mlMatrixTemplate.h.

References mlrange_cast().

Friends And Related Symbol Documentation

◆ operator!=

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

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

Parameters
qnon-equal

Definition at line 97 of file mlMatrixTemplate.h.

◆ operator<

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

overload operator< (.,.) for Slice_iter objects

Parameters
qless

Definition at line 103 of file mlMatrixTemplate.h.

◆ operator==

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

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

Parameters
qequal

Definition at line 89 of file mlMatrixTemplate.h.


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