Adobe Systems, Inc.

pixel_image_iterator< LOC2 > Class Template Reference
[Pixel Iterators]

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

#include <pixel_iterator.hpp>

List of all members.


Public Types

typedef parent_t::difference_type difference_type
typedef std::random_access_iterator_tag iterator_category
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 LOC2::pixel_t pixel_t
typedef LOC2::point_t point_t
typedef parent_t::reference reference
typedef LOC2::x_iterator x_iterator

Public Member Functions

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

Friends

class boost::iterator_core_access
class pixel_image_iterator

Detailed Description

template<typename LOC2>
class pixel_image_iterator< LOC2 >

Models: PixelImageIteratorConcept

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

Definition at line 266 of file pixel_iterator.hpp.


Member Function Documentation

template<typename LOC2>
reference pixel_image_iterator< LOC2 >::operator[] difference_type  d  )  const
 

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

Definition at line 290 of file pixel_iterator.hpp.

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