Claw 1.7.0
|
Base class for iterators on an image. More...
#include <image.hpp>
Public Types | |
typedef pixel_type | value_type |
typedef pixel_type & | reference |
typedef pixel_type * | pointer |
typedef ptrdiff_t | difference_type |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
base_iterator () | |
Constructor. | |
base_iterator (image_type &owner, unsigned int x=0, unsigned int y=0) | |
Constructor, from an image. | |
bool | operator== (const self_type &that) const |
Tell if two iterator point to the same address. | |
bool | operator!= (const self_type &that) const |
Tell if two iterator points to different addresses. | |
bool | operator< (const self_type &that) const |
Tell if the current iterator is before an other. | |
bool | operator> (const self_type &that) const |
Tell if the current iterator is after an other. | |
bool | operator<= (const self_type &that) const |
Tell if the current iterator is before an other, or on the same address. | |
bool | operator>= (const self_type &that) const |
Tell if the current iterator is after an other, or on the same address. | |
self_type & | operator+= (int n) |
Move the iterator. | |
self_type & | operator-= (int n) |
Move the iterator. | |
self_type | operator+ (int n) const |
Get an iterator at a specific distance of the current iterator. | |
self_type | operator- (int n) const |
Get an iterator at a specific distance of the current iterator. | |
difference_type | operator- (const self_type &that) const |
Get the distance between two iterators. | |
self_type & | operator++ () |
Preincrement. | |
self_type | operator++ (int) |
Postincrement. | |
self_type & | operator-- () |
Predecrement. | |
self_type | operator-- (int) |
Postdecrement. | |
reference | operator* () const |
Get a reference on the pointed pixel. | |
pointer | operator-> () const |
Get a pointer on the pointed pixel. | |
reference | operator[] (int n) const |
Get a pixel, using the iterator like an array. | |
Friends | |
template<typename ImageT , typename PixelT > | |
self_type | operator+ (int n, const self_type &self) |
Base class for iterators on an image.
claw::graphic::image::base_iterator< Image, Pixel >::base_iterator | ( | image_type & | owner, |
unsigned int | x = 0 , |
||
unsigned int | y = 0 |
||
) | [inline] |
bool claw::graphic::image::base_iterator< Image, Pixel >::operator!= | ( | const self_type & | that | ) | const [inline] |
claw::graphic::image::base_iterator< Image, Pixel >::self_type claw::graphic::image::base_iterator< Image, Pixel >::operator+ | ( | int | n | ) | const [inline] |
claw::graphic::image::base_iterator< Image, Pixel >::self_type & claw::graphic::image::base_iterator< Image, Pixel >::operator+= | ( | int | n | ) | [inline] |
Move the iterator.
n | Number of steps of the move. |
Definition at line 178 of file image.ipp.
References CLAW_PRECOND.
claw::graphic::image::base_iterator< Image, Pixel >::self_type claw::graphic::image::base_iterator< Image, Pixel >::operator- | ( | int | n | ) | const [inline] |
claw::graphic::image::base_iterator< Image, Pixel >::difference_type claw::graphic::image::base_iterator< Image, Pixel >::operator- | ( | const self_type & | that | ) | const [inline] |
Get the distance between two iterators.
that | The other operand. |
Definition at line 277 of file image.ipp.
References CLAW_PRECOND.
claw::graphic::image::base_iterator< Image, Pixel >::self_type & claw::graphic::image::base_iterator< Image, Pixel >::operator-= | ( | int | n | ) | [inline] |
Move the iterator.
n | Number of steps of the move. |
Definition at line 203 of file image.ipp.
References CLAW_PRECOND.
bool claw::graphic::image::base_iterator< Image, Pixel >::operator< | ( | const self_type & | that | ) | const [inline] |
Tell if the current iterator is before an other.
that | The other operand. |
Definition at line 122 of file image.ipp.
References claw::math::coordinate_2d< T >::x.
bool claw::graphic::image::base_iterator< Image, Pixel >::operator<= | ( | const self_type & | that | ) | const [inline] |
bool claw::graphic::image::base_iterator< Image, Pixel >::operator== | ( | const self_type & | that | ) | const [inline] |
bool claw::graphic::image::base_iterator< Image, Pixel >::operator> | ( | const self_type & | that | ) | const [inline] |
bool claw::graphic::image::base_iterator< Image, Pixel >::operator>= | ( | const self_type & | that | ) | const [inline] |
claw::graphic::image::base_iterator< Image, Pixel >::reference claw::graphic::image::base_iterator< Image, Pixel >::operator[] | ( | int | n | ) | const [inline] |