#include <mia/2d/iterator.hh>
Inherits iterator< std::forward_iterator_tag, I::value_type >.
|
template<typename AI > |
class | range2d_iterator |
| friend iterator type because we may want to copy a iterator to a const_iterator. More...
|
|
template<typename I>
class range2d_iterator< I >
Definition at line 214 of file 2d/iterator.hh.
◆ internal_iterator
data type for the real iterator in the background
Definition at line 222 of file 2d/iterator.hh.
◆ pointer
◆ reference
◆ value_type
◆ range2d_iterator() [1/5]
◆ range2d_iterator() [2/5]
Full constructor of the range iterator
- Parameters
-
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() [3/5]
End iterator, can't be dereferenced This iterator is only there to define the end position of the range_iterator.
- Parameters
-
pos | end position to set this iterator to. |
◆ range2d_iterator() [4/5]
◆ range2d_iterator() [5/5]
template<typename I >
template<typename AI >
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.
- Template Parameters
-
AI | the other iterator type. Iterator type I must be copy-constructable from type AI |
- Parameters
-
Definition at line 341 of file 2d/iterator.hh.
◆ get_point()
Return the internal iterator
◆ operator*()
- Returns
- current value the iterator points to
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator->()
- Returns
- pointer to the current value the iterator points to
◆ operator=() [1/2]
◆ operator=() [2/2]
template<typename I >
template<typename AI >
Assignment operator from another type of iterator
- Template Parameters
-
AI | other iterator type. The assignment I b = a; with a of type AI must be defined. |
- Parameters
-
Definition at line 328 of file 2d/iterator.hh.
◆ operator[]()
◆ pos()
- Returns
- the current position within the 2D grid with respect to the full size of the grid.
◆ with_boundary_flag()
◆ range2d_iterator
template<typename I>
template<typename AI >
friend iterator type because we may want to copy a iterator to a const_iterator.
Definition at line 255 of file 2d/iterator.hh.
The documentation for this class was generated from the following file: