Gnash  0.8.11dev
Public Types | Public Member Functions | Friends | List of all members
gnash::image::pixel_iterator< Pixel > Struct Template Reference

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

#include <ImageIterators.h>

Inheritance diagram for gnash::image::pixel_iterator< Pixel >:

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. More...
 
 pixel_iterator (const pixel_iterator &other)
 Copy a pixel_iterator. More...
 
pixel_iteratoroperator= (const pixel_iterator &other)
 Assign to a pixel_iterator. More...
 

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
PixelA class that determines the byte order of the colour value.

Member Typedef Documentation

§ difference_type

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

§ iterator

template<typename Pixel >
typedef Pixel::iterator gnash::image::pixel_iterator< Pixel >::iterator

Constructor & Destructor Documentation

§ pixel_iterator() [1/2]

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

Construct a pixel_iterator.

§ pixel_iterator() [2/2]

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

Copy a pixel_iterator.

Member Function Documentation

§ operator=()

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

Assign to a pixel_iterator.

Friends And Related Function Documentation

§ boost::iterator_core_access

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

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