pixel_step_iterator Class Template Reference
[Pixel Iterators]
#include <pixel_iterator.hpp>
Inheritance diagram for pixel_step_iterator:
List of all members.
Detailed Description
template<typename Iterator>
class pixel_step_iterator< Iterator >
Pixel iterator with dynamically specified step in bytes.
Models StepIteratorConcept, PixelIteratorConcept, ByteAdvanceableIteratorConcept
A refinement of step_iterator_adaptor that uses a dynamic parameter for the step which is specified in bytes
Pixel step iterators are used to provide iteration over non-adjacent pixels. Common use is a vertical traversal, where the step is the row stride.
Another application is as a sub-channel view. For example, a red intensity image over interleaved RGB data would use a step iterator adaptor with step sizeof(channel_t)*3 In the latter example the step size could be fixed at compile time for efficiency. Compile-time fixed step can be implemented by providing A_FN that takes the step as a template
|
Public Types |
typedef adobe::step_iterator_adaptor<
pixel_step_iterator< Iterator >,
Iterator, byte_step_fn< Iterator > > | parent_t |
typedef std::random_access_iterator_tag | iterator_category |
typedef parent_t::reference | reference |
typedef parent_t::difference_type | difference_type |
typedef pixel_iterator_traits<
Iterator >::channel_t | channel_t |
typedef pixel_iterator_traits<
Iterator >::color_space_t | color_space_t |
typedef Iterator | x_iterator |
Public Member Functions |
| pixel_step_iterator (Iterator it, std::ptrdiff_t byte_step) |
template<typename I2> |
| pixel_step_iterator (const pixel_step_iterator< I2 > &it) |
reference | operator[] (difference_type d) const |
void | set_step (std::ptrdiff_t byte_step) |
x_iterator & | base () |
x_iterator const & | base () const |
Member Function Documentation
reference operator[] |
( |
difference_type |
d |
) |
const [inline] |
|
|
For some reason operator[] provided by boost::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 class was generated from the following file:
|