pixel_image_iterator Class Template Reference
[Pixel Iterators]

#include <pixel_iterator.hpp>

List of all members.


Detailed Description

template<typename Loc2>
class pixel_image_iterator< Loc2 >

Provides 1D random-access navigation to the pixels of the image.

Models: PixelImageIteratorConcept

Pixels are traversed from the top to the bottom row and from the left to the right within each row


Public Types

typedef boost::iterator_facade<
pixel_image_iterator< Loc2 >,
typename Loc2::value_type,
boost::random_access_traversal_tag,
typename Loc2::reference,
typename Loc2::coord_t > 
parent_t
typedef std::random_access_iterator_tag iterator_category
typedef parent_t::reference reference
typedef parent_t::difference_type difference_type
typedef Loc2::x_iterator x_iterator
typedef Loc2::point_t point_t
typedef Loc2::pixel_t pixel_t

Public Member Functions

int width () const
int x_pos () const
reference operator[] (difference_type d) const
bool is_contiguous () const
x_iterator & x ()
 pixel_image_iterator (const Loc2 &p, int width, int x=0)
 pixel_image_iterator (const pixel_image_iterator &pit)
template<typename Loc>
 pixel_image_iterator (const pixel_image_iterator< Loc > &pit)

Friends

class pixel_image_iterator
class boost::iterator_core_access

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:

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google