iterator_from_2d Class Template Reference

#include <iterator_from_2d.hpp>

List of all members.

Detailed Description

template<typename Loc2>
class boost::gil::iterator_from_2d< Loc2 >

Provides 1D random-access navigation to the pixels of the image. Models: PixelIteratorConcept, PixelBasedConcept, HasDynamicXStepTypeConcept.

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

Public Types

typedef iterator_facade< iterator_from_2d<
Loc2 >, typename Loc2::value_type,
typename Loc2::reference,
typename Loc2::coord_t > 
typedef parent_t::reference reference
typedef parent_t::difference_type difference_type
typedef Loc2::x_iterator x_iterator
typedef Loc2::point_t point_t

Public Member Functions

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


class iterator_from_2d
class boost::iterator_core_access

Member Function Documentation

reference operator[] difference_type  d  )  const [inline]

For some reason operator[] provided by 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-2007 Adobe Systems Incorporated.

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

Search powered by Google