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

Iterator class. More...

#include <iterator_line.hpp>

List of all members.

Public Member Functions

 iterator_line ()
 default constructor of the iterator
 iterator_line (const unsigned int r, const unsigned int w)
 constructor of the iterator
 iterator_line (const iterator_line< T, 0 > &it)
 constructor of the iterator from another iterator
 ~iterator_line ()
 Destructor of the iterator.
iterator_line< T, 0 > & operator++ ()
 operator ++ pre-incrementation of the iterator
iterator_line< T, 0 > & operator++ (int)
 operator ++ post-incrementation of the iterator
iterator_line< T, 0 > & operator-- ()
 operator -- pre-decrementation of the iterator
iterator_line< T, 0 > & operator-- (int)
 operator -- post-decrementation of the iterator
iterator_line< T, 0 > & operator= (iterator_line< T, 0 > right)
 operator = of the iterator
bool operator== (const iterator_line< T, 0 > &toTest)
 operator == of the iterator
bool operator!= (const iterator_line< T, 0 > &toTest)
 operator != of the iterator
bool operator<= (const iterator_line< T, 0 > &toComp)
 operator <= of the iterator
bool operator< (const iterator_line< T, 0 > &toComp)
 operator < of the iterator
bool operator>= (const iterator_line< T, 0 > &toComp)
 operator >= of the iterator
bool operator> (const iterator_line< T, 0 > &toComp)
 operator > of the iterator
iterator< T, 0 > begin ()
 begin method of the line iterator
iterator_cont< T, 0 > begin_cont ()
 begin_cont method of the line iterator
iterator< T, 0 > end ()
 end method of the line iterator
iterator_cont< T, 0 > end_cont ()
 end_cont method of the line iterator

Public Attributes

unsigned int _rank
unsigned int _width

Detailed Description

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

Iterator class.

template of the line iterator of SkelGIS. This is the first specialization of line 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 208 of file iterator_line.hpp.


Constructor & Destructor Documentation

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

constructor of the iterator

Parameters:
ris the initial rank to assign to the iterator
wis the DMatrix width to assign to the iterator

Definition at line 225 of file iterator_line.hpp.

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


Member Function Documentation

template<class T >
iterator<T,0> skelgis::iterator_line< T, 0 >::begin ( ) [inline]

begin method of the line iterator

This method returns an iterator on the first element of the current line of the DMatrix. This iterator is then used until the end() method of the line iterator is reached.

Returns:
an iterator on the first element of the current line on the DMatrix

Definition at line 360 of file iterator_line.hpp.

template<class T >
iterator_cont<T,0> skelgis::iterator_line< T, 0 >::begin_cont ( ) [inline]

begin_cont method of the line iterator

This method returns an iterator contiguous on the first element of the current line of the DMatrix. This iterator is then used until the end() method of the line iterator is reached.

Returns:
an iterator_cont on the first element of the current line on the DMatrix

Definition at line 368 of file iterator_line.hpp.

template<class T >
iterator<T,0> skelgis::iterator_line< T, 0 >::end ( ) [inline]

end method of the line iterator

This method returns the end iterator on the current line of the DMatrix.

Returns:
the end iterator of the current line on the DMatrix

Definition at line 376 of file iterator_line.hpp.

template<class T >
iterator_cont<T,0> skelgis::iterator_line< T, 0 >::end_cont ( ) [inline]

end_cont method of the line iterator

This method returns the end contiguous iterator on the current line of the DMatrix.

Returns:
the end_cont iterator of the current line on the DMatrix

Definition at line 384 of file iterator_line.hpp.

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

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

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

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

operator -- pre-decrementation of the iterator

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

Returns:
a reference to the resulting iterator itself

Definition at line 271 of file iterator_line.hpp.

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

operator -- post-decrementation of the iterator

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

Returns:
a reference to the resulting iterator itself

Definition at line 284 of file iterator_line.hpp.

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

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

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

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

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

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


Member Data Documentation

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

current rank of the iterator

Definition at line 212 of file iterator_line.hpp.

template<class T >
unsigned int skelgis::iterator_line< T, 0 >::_width

width of the DMatrix associated to this iterator

Definition at line 213 of file iterator_line.hpp.


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