|
Claw
1.7.3
|
Base class for iterators on an image. More...
#include <image.hpp>
Public Types | |
| typedef pixel_type | value_type |
| The type of the values accessed by the iterator. | |
| typedef pixel_type & | reference |
| The type of the references to the values accesssed by the iterator. | |
| typedef pixel_type * | pointer |
| The type of the pointers to the values accesssed by the iterator. | |
| typedef ptrdiff_t | difference_type |
| The type of the distance between two iterators. | |
|
typedef std::random_access_iterator_tag | iterator_category |
| The type of this 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) |
| Get an iterator at a specific distance of the current iterator. | |
Base class for iterators on an image.
|
inline |
|
inline |
|
inline |
|
inline |
Move the iterator.
| n | Number of steps of the move. |
Definition at line 178 of file image.ipp.
References CLAW_PRECOND.
|
inline |
|
inline |
Get the distance between two iterators.
| that | The other operand. |
Definition at line 277 of file image.ipp.
References CLAW_PRECOND.
|
inline |
Move the iterator.
| n | Number of steps of the move. |
Definition at line 203 of file image.ipp.
References CLAW_PRECOND.
|
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Get an iterator at a specific distance of the current iterator.
| n | The distance of the wanted iterator. |
| self | The reference iterator. |
1.8.1.2