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

Iterator class. More...

#include <iterator_rev.hpp>

List of all members.

Public Member Functions

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

Public Attributes

unsigned int _rank

Detailed Description

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

Iterator class.

template of the reverse 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 154 of file iterator_rev.hpp.


Constructor & Destructor Documentation

template<class T >
skelgis::iterator_rev< T, 0 >::iterator_rev ( const unsigned int  r) [inline]

constructor of the iterator

Parameters:
ris the initial rank to assign to the iterator

Definition at line 169 of file iterator_rev.hpp.

template<class T >
skelgis::iterator_rev< T, 0 >::iterator_rev ( const iterator_rev< 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 176 of file iterator_rev.hpp.


Member Function Documentation

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator!= ( const iterator_rev< 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 225 of file iterator_rev.hpp.

template<class T >
iterator_rev<T,0>& skelgis::iterator_rev< 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 188 of file iterator_rev.hpp.

template<class T >
iterator_rev<T,0>& skelgis::iterator_rev< 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 196 of file iterator_rev.hpp.

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator< ( const iterator_rev< 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 240 of file iterator_rev.hpp.

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator<= ( const iterator_rev< 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 233 of file iterator_rev.hpp.

template<class T >
iterator_rev<T,0>& skelgis::iterator_rev< T, 0 >::operator= ( iterator_rev< 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 204 of file iterator_rev.hpp.

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator== ( const iterator_rev< 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 217 of file iterator_rev.hpp.

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator> ( const iterator_rev< 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 256 of file iterator_rev.hpp.

template<class T >
bool skelgis::iterator_rev< T, 0 >::operator>= ( const iterator_rev< 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 248 of file iterator_rev.hpp.


Member Data Documentation

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

current rank of the iterator

Definition at line 158 of file iterator_rev.hpp.


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