MIRA
|
Iterator that can iterate over the whole color colormap similar to STL iterators on containers. More...
#include <image/Colormap.h>
Public Types | |
typedef Color::RGB | value_type |
typedef int | difference_type |
typedef const Color::RGB * | pointer |
typedef const Color::RGB & | reference |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
iterator () | |
iterator (const iterator &other) | |
iterator & | operator++ () |
advance the iterator More... | |
iterator | operator++ (int) |
advance the iterator More... | |
iterator & | operator-- () |
go to previous color More... | |
iterator | operator-- (int) |
go to previous color More... | |
bool | operator== (const iterator &other) |
bool | operator!= (const iterator &other) |
reference | operator* () const |
Dereference to the color, the iterator is pointing to. More... | |
pointer | operator-> () const |
Dereference to the color, the iterator is pointing to. More... | |
Protected Member Functions | |
iterator (const Colormap *colormap, std::size_t position) | |
Friends | |
class | Colormap |
Iterator that can iterate over the whole color colormap similar to STL iterators on containers.
Each iterator points to a certain color in the colormap.
typedef Color::RGB value_type |
typedef int difference_type |
typedef const Color::RGB* pointer |
typedef const Color::RGB& reference |
typedef std::bidirectional_iterator_tag iterator_category |
|
inline |
|
inline |
advance the iterator
|
inline |
advance the iterator
|
inline |
go to previous color
|
inline |
go to previous color
|
inline |
|
inline |
|
inline |
Dereference to the color, the iterator is pointing to.
|
inline |
Dereference to the color, the iterator is pointing to.
|
friend |