Public Types | Public Member Functions | Friends

gnash::image::pixel_iterator< Pixel > Struct Template Reference

The pixel_iterator class is a pixel-level adaptor for a GnashImage. More...

#include <ImageIterators.h>

List of all members.

Public Types

typedef std::ptrdiff_t difference_type
typedef Pixel::iterator iterator

Public Member Functions

 pixel_iterator (iterator it, ImageType t)
 Construct a pixel_iterator.
 pixel_iterator (const pixel_iterator &other)
 Copy a pixel_iterator.
pixel_iteratoroperator= (const pixel_iterator &other)
 Assign to a pixel_iterator.

Friends

class boost::iterator_core_access

Detailed Description

template<typename Pixel>
struct gnash::image::pixel_iterator< Pixel >

The pixel_iterator class is a pixel-level adaptor for a GnashImage.

Instead of iterating byte-by-byte, this iterator provides access at a whole-pixel level. This makes it possible to assign custom colour values.

Template Parameters:
Pixel A class that determines the byte order of the colour value.

Member Typedef Documentation

template<typename Pixel >
typedef std::ptrdiff_t gnash::image::pixel_iterator< Pixel >::difference_type
template<typename Pixel >
typedef Pixel::iterator gnash::image::pixel_iterator< Pixel >::iterator

Constructor & Destructor Documentation

template<typename Pixel >
gnash::image::pixel_iterator< Pixel >::pixel_iterator ( iterator  it,
ImageType  t 
) [inline]

Construct a pixel_iterator.

template<typename Pixel >
gnash::image::pixel_iterator< Pixel >::pixel_iterator ( const pixel_iterator< Pixel > &  other  )  [inline]

Copy a pixel_iterator.


Member Function Documentation

template<typename Pixel >
pixel_iterator& gnash::image::pixel_iterator< Pixel >::operator= ( const pixel_iterator< Pixel > &  other  )  [inline]

Assign to a pixel_iterator.

References _it.


Friends And Related Function Documentation

template<typename Pixel >
friend class boost::iterator_core_access [friend]

The documentation for this struct was generated from the following file: