Provides 1D random-access navigation to the pixels of the image. More...
#include <iterator_from_2d.hpp>
Public Types | |
typedef iterator_facade < iterator_from_2d< Loc2 > , typename Loc2::value_type, std::random_access_iterator_tag, typename Loc2::reference, typename Loc2::coord_t > | parent_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 | |
std::ptrdiff_t | width () const |
std::ptrdiff_t | x_pos () const |
std::ptrdiff_t | y_pos () const |
reference | operator[] (difference_type d) const |
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. More... | |
bool | is_1d_traversable () const |
x_iterator & | x () |
iterator_from_2d () | |
iterator_from_2d (const Loc2 &p, std::ptrdiff_t width, std::ptrdiff_t x=0, std::ptrdiff_t y=0) | |
iterator_from_2d (const iterator_from_2d &pit) | |
template<typename Loc > | |
iterator_from_2d (const iterator_from_2d< Loc > &pit) | |
Friends | |
template<typename Loc > | |
class | iterator_from_2d |
class | boost::iterator_core_access |
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
typedef parent_t::difference_type boost::gil::iterator_from_2d< Loc2 >::difference_type |
typedef iterator_facade<iterator_from_2d<Loc2>, typename Loc2::value_type, std::random_access_iterator_tag, typename Loc2::reference, typename Loc2::coord_t> boost::gil::iterator_from_2d< Loc2 >::parent_t |
typedef Loc2::point_t boost::gil::iterator_from_2d< Loc2 >::point_t |
typedef parent_t::reference boost::gil::iterator_from_2d< Loc2 >::reference |
typedef Loc2::x_iterator boost::gil::iterator_from_2d< Loc2 >::x_iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::gil::iterator_from_2d< Loc2 >::width().
Referenced by std::equal(), and std::fill().
|
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.
|
inline |
Referenced by boost::gil::iterator_from_2d< Loc2 >::is_1d_traversable(), boost::gil::detail::copier_n< iterator_from_2d< IL >, O >::operator()(), boost::gil::detail::copier_n< I, iterator_from_2d< OL > >::operator()(), boost::gil::detail::copier_n< iterator_from_2d< IL >, iterator_from_2d< OL > >::operator()(), boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc >, I2 >::operator()(), boost::gil::detail::equal_n_fn< I1, boost::gil::iterator_from_2d< Loc > >::operator()(), and boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc1 >, boost::gil::iterator_from_2d< Loc2 > >::operator()().
|
inline |
Referenced by std::equal(), std::fill(), boost::gil::detail::copier_n< iterator_from_2d< IL >, O >::operator()(), boost::gil::detail::copier_n< I, iterator_from_2d< OL > >::operator()(), boost::gil::detail::copier_n< iterator_from_2d< IL >, iterator_from_2d< OL > >::operator()(), boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc >, I2 >::operator()(), boost::gil::detail::equal_n_fn< I1, boost::gil::iterator_from_2d< Loc > >::operator()(), and boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc1 >, boost::gil::iterator_from_2d< Loc2 > >::operator()().
|
inline |
References boost::gil::point2< T >::x.
Referenced by boost::gil::detail::copier_n< iterator_from_2d< IL >, O >::operator()(), boost::gil::detail::copier_n< I, iterator_from_2d< OL > >::operator()(), boost::gil::detail::copier_n< iterator_from_2d< IL >, iterator_from_2d< OL > >::operator()(), boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc >, I2 >::operator()(), boost::gil::detail::equal_n_fn< I1, boost::gil::iterator_from_2d< Loc > >::operator()(), and boost::gil::detail::equal_n_fn< boost::gil::iterator_from_2d< Loc1 >, boost::gil::iterator_from_2d< Loc2 > >::operator()().
|
inline |
References boost::gil::point2< T >::y.
|
friend |