SkelGIS  3.0
skelgis::iterator_step< T, 0 > Struct Template Reference

Iterator class. More...

#include <iterator_step.hpp>

List of all members.

Public Member Functions

 iterator_step ()
 default constructor of the iterator
 iterator_step (const unsigned int r, int s=1, int n=1)
 constructor of the iterator
 iterator_step (const iterator_step< T, 0 > &it)
 constructor of the iterator from another iterator
 ~iterator_step ()
 Destructor of the iterator.
iterator_step< T, 0 > & operator++ ()
 operator ++ pre-incrementation of the iterator
iterator_step< T, 0 > & operator++ (int)
 operator ++ post-incrementation of the iterator
iterator_step< T, 0 > & operator= (iterator_step< T, 0 > right)
 operator = of the iterator
bool operator== (const iterator_step< T, 0 > &toTest)
 operator == of the iterator
bool operator!= (const iterator_step< T, 0 > &toTest)
 operator != of the iterator
bool operator<= (const iterator_step< T, 0 > &toComp)
 operator <= of the iterator
bool operator< (const iterator_step< T, 0 > &toComp)
 operator < of the iterator
bool operator>= (const iterator_step< T, 0 > &toComp)
 operator >= of the iterator
bool operator> (const iterator_step< T, 0 > &toComp)
 operator > of the iterator

Public Attributes

unsigned int _rank
int _step
int _nb
int _cpt

Detailed Description

template<class T>
struct skelgis::iterator_step< T, 0 >

Iterator class.

template of the step iterator of SkelGIS. This is the second specialization of iterator class.

Template Parameters:
Tis the type of data stored in the DMatrix to manipulate with the iterator R is specialized with the value 0

Definition at line 180 of file iterator_step.hpp.


Constructor & Destructor Documentation

template<class T >
skelgis::iterator_step< T, 0 >::iterator_step ( const unsigned int  r,
int  s = 1,
int  n = 1 
) [inline]

constructor of the iterator

Parameters:
ris the initial rank to assign to the iterator
wis the DMatrix width to assign to the iterator
sis the step value to jump
nis the number of elements to read before the jump

Definition at line 201 of file iterator_step.hpp.

template<class T >
skelgis::iterator_step< T, 0 >::iterator_step ( const iterator_step< T, 0 > &  it) [inline]

constructor of the iterator from another iterator

Parameters:
itis the other iterator instance from which to construct the new one

Definition at line 208 of file iterator_step.hpp.


Member Function Documentation

template<class T >
bool skelgis::iterator_step< T, 0 >::operator!= ( const iterator_step< T, 0 > &  toTest) [inline]

operator != of the iterator

This operation checks the inequality of two iterators with their rank values.

Returns:
true if the two iterator do not have the same rank. False otherwize.

Definition at line 289 of file iterator_step.hpp.

template<class T >
iterator_step<T,0>& skelgis::iterator_step< T, 0 >::operator++ ( ) [inline]

operator ++ pre-incrementation of the iterator

This operation increments the position of the iterator in the DMatrix.

Returns:
a reference to the resulting iterator itself

Definition at line 220 of file iterator_step.hpp.

template<class T >
iterator_step<T,0>& skelgis::iterator_step< T, 0 >::operator++ ( int  ) [inline]

operator ++ post-incrementation of the iterator

This operation increments the position of the iterator in the DMatrix.

Returns:
a reference to the resulting iterator itself

Definition at line 242 of file iterator_step.hpp.

template<class T >
bool skelgis::iterator_step< T, 0 >::operator< ( const iterator_step< T, 0 > &  toComp) [inline]

operator < of the iterator

This operation checks if the current iterator rank is smaller than the other one.

Returns:
true is the current iterator rank is smaller. False otherwize.

Definition at line 305 of file iterator_step.hpp.

template<class T >
bool skelgis::iterator_step< T, 0 >::operator<= ( const iterator_step< T, 0 > &  toComp) [inline]

operator <= of the iterator

This operation checks if the current iterator rank is smaller or equal to the other one.

Returns:
true is the current iterator rank is smaller or equal. False otherwize.

Definition at line 297 of file iterator_step.hpp.

template<class T >
iterator_step<T,0>& skelgis::iterator_step< T, 0 >::operator= ( iterator_step< T, 0 >  right) [inline]

operator = of the iterator

This operation assigns another iterator informations to the current one.

Returns:
a reference to the resulting iterator itself

Definition at line 265 of file iterator_step.hpp.

template<class T >
bool skelgis::iterator_step< T, 0 >::operator== ( const iterator_step< T, 0 > &  toTest) [inline]

operator == of the iterator

This operation checks the equality of two iterators with their rank values.

Returns:
true if the two iterator have the same rank. False otherwize.

Definition at line 281 of file iterator_step.hpp.

template<class T >
bool skelgis::iterator_step< T, 0 >::operator> ( const iterator_step< T, 0 > &  toComp) [inline]

operator > of the iterator

This operation checks if the current iterator rank is biger than the other one.

Returns:
true is the current iterator rank is biger. False otherwize.

Definition at line 321 of file iterator_step.hpp.

template<class T >
bool skelgis::iterator_step< T, 0 >::operator>= ( const iterator_step< T, 0 > &  toComp) [inline]

operator >= of the iterator

This operation checks if the current iterator rank is biger or equal to the other one.

Returns:
true is the current iterator rank is biger or equal. False otherwize.

Definition at line 313 of file iterator_step.hpp.


Member Data Documentation

template<class T >
int skelgis::iterator_step< T, 0 >::_cpt

counter to know how much elements has been read for know

Definition at line 187 of file iterator_step.hpp.

template<class T >
int skelgis::iterator_step< T, 0 >::_nb

number of contiguous elements to read

Definition at line 186 of file iterator_step.hpp.

template<class T >
unsigned int skelgis::iterator_step< T, 0 >::_rank

current rank of the iterator

Definition at line 184 of file iterator_step.hpp.

template<class T >
int skelgis::iterator_step< T, 0 >::_step

number of elements to jump after a read of _nb elements

Definition at line 185 of file iterator_step.hpp.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Defines