#include <mia/2d/iterator.hh>
Inherits iterator< std::forward_iterator_tag, I::value_type >.
Public Types | |
typedef I | internal_iterator |
data type for the real iterator in the background More... | |
typedef I::pointer | pointer |
data type pointer More... | |
typedef I::reference | reference |
data type reference More... | |
typedef I::value_type | value_type |
Public Member Functions | |
internal_iterator | get_point () |
reference | operator* () const |
range2d_iterator< I > & | operator++ () |
prefix increment More... | |
range2d_iterator< I > | operator++ (int) |
postfix increment More... | |
pointer | operator-> () const |
range2d_iterator< I > & | operator= (const range2d_iterator< I > &other) |
assignment operator More... | |
template<typename AI > | |
range2d_iterator< I > & | operator= (const range2d_iterator< AI > &other) |
const C2DBounds & | pos () const |
range2d_iterator () | |
range2d_iterator (const C2DBounds &pos, const C2DBounds &size, const C2DBounds &start, const C2DBounds &end, I iterator) | |
range2d_iterator (const C2DBounds &pos) | |
range2d_iterator (const range2d_iterator< I > &other) | |
copy constructore More... | |
template<typename AI > | |
range2d_iterator (const range2d_iterator< AI > &other) | |
range2d_iterator_with_boundary_flag < I > | with_boundary_flag () const |
Friends | |
template<typename AI > | |
class | range2d_iterator |
friend iterator type because we may want to copy a iterator to a const_iterator. More... | |
Definition at line 214 of file 2d/iterator.hh.
typedef I range2d_iterator< I >::internal_iterator |
data type for the real iterator in the background
Definition at line 222 of file 2d/iterator.hh.
typedef I::pointer range2d_iterator< I >::pointer |
data type pointer
Definition at line 220 of file 2d/iterator.hh.
typedef I::reference range2d_iterator< I >::reference |
data type reference
Definition at line 218 of file 2d/iterator.hh.
typedef I::value_type range2d_iterator< I >::value_type |
Definition at line 224 of file 2d/iterator.hh.
range2d_iterator< I >::range2d_iterator | ( | ) |
standard constructor
range2d_iterator< I >::range2d_iterator | ( | const C2DBounds & | pos, |
const C2DBounds & | size, | ||
const C2DBounds & | start, | ||
const C2DBounds & | end, | ||
I | iterator | ||
) |
Full constructor of the range iterator
pos | iterator position to initialize the iterator with |
size | size of the original data field |
start | start of the iterator range |
end | end of the iterator range |
iterator | the iterator of the underlying 2D data structure |
range2d_iterator< I >::range2d_iterator | ( | const C2DBounds & | pos | ) |
End iterator, can't be dereferenced This iterator is only there to define the end position of the range_iterator.
pos | end position to set this iterator to. |
range2d_iterator< I >::range2d_iterator | ( | const range2d_iterator< I > & | other | ) |
copy constructore
range2d_iterator< I >::range2d_iterator | ( | const range2d_iterator< AI > & | other | ) |
Constructor to construct the iterator from one that is based on another iterator type. The usual idea is that a iterator may be converted into it's const variant.
AI | the other iterator type. Iterator type I must be copy-constructable from type AI |
other |
Definition at line 335 of file 2d/iterator.hh.
internal_iterator range2d_iterator< I >::get_point | ( | ) |
Return the internal iterator
reference range2d_iterator< I >::operator* | ( | ) | const |
range2d_iterator<I>& range2d_iterator< I >::operator++ | ( | ) |
prefix increment
range2d_iterator<I> range2d_iterator< I >::operator++ | ( | int | ) |
postfix increment
pointer range2d_iterator< I >::operator-> | ( | ) | const |
range2d_iterator<I>& range2d_iterator< I >::operator= | ( | const range2d_iterator< I > & | other | ) |
assignment operator
range2d_iterator< I > & range2d_iterator< I >::operator= | ( | const range2d_iterator< AI > & | other | ) |
Assignment operator from another type of iterator
AI | other iterator type. The assignment I b = a; with a of type AI must be defined. |
other |
Definition at line 322 of file 2d/iterator.hh.
const C2DBounds& range2d_iterator< I >::pos | ( | ) | const |
range2d_iterator_with_boundary_flag<I> range2d_iterator< I >::with_boundary_flag | ( | ) | const |
friend iterator type because we may want to copy a iterator to a const_iterator.
Definition at line 255 of file 2d/iterator.hh.