An iterator that remembers its current X,Y position and invokes a function object with it upon dereferencing. Used to create virtual image views. Models: StepIteratorConcept, PixelIteratorConcept, PixelBasedConcept, HasDynamicXStepTypeConcept.  
 More...
#include <position_iterator.hpp>
Inherits iterator_facade< position_iterator< Deref, Dim >, Deref::value_type, std::random_access_iterator_tag, Deref::reference, Deref::argument_type::template axis< Dim >::coord_t >.
|  | 
| using | parent_t = iterator_facade< position_iterator< Deref, Dim >, typename Deref::value_type, std::random_access_iterator_tag, typename Deref::reference, typename Deref::argument_type::template axis< Dim >::coord_t > | 
|  | 
| using | difference_type = typename parent_t::difference_type | 
|  | 
| using | reference = typename parent_t::reference | 
|  | 
| using | point_t = typename Deref::argument_type | 
|  | 
|  | 
|  | position_iterator (const point_t &p, const point_t &step, const Deref &d) | 
|  | 
|  | position_iterator (const position_iterator &p) | 
|  | 
| template<typename D > | 
|  | position_iterator (const position_iterator< D, Dim > &p) | 
|  | 
| position_iterator & | operator= (const position_iterator &p) | 
|  | 
| const point_t & | pos () const | 
|  | 
| const point_t & | step () const | 
|  | 
| const Deref & | deref_fn () const | 
|  | 
| void | set_step (difference_type s) | 
|  | 
| reference | operator[] (difference_type d) const | 
|  | 
|  | 
| template<typename DE , int DI> | 
| struct | position_iterator | 
|  | 
| class | boost::iterator_core_access | 
|  | 
template<typename Deref, int Dim>
struct boost::gil::position_iterator< Deref, Dim >
An iterator that remembers its current X,Y position and invokes a function object with it upon dereferencing. Used to create virtual image views. Models: StepIteratorConcept, PixelIteratorConcept, PixelBasedConcept, HasDynamicXStepTypeConcept. 
- Template Parameters
- 
  
  
◆ operator[]()
  
  | 
        
          | reference operator[] | ( | difference_type | d | ) | const |  | inline | 
 
For some reason operator[] provided by iterator_adaptor returns a custom class that is convertible to reference We require our own reference because it is registered in iterator_traits 
 
 
The documentation for this struct was generated from the following file: