#include <wipal/tool/iterator.hh>
Iterator types. | |
typedef ssize_t | difference_type |
typedef value_type * | pointer |
typedef value_type & | reference |
typedef std::input_iterator_tag | iterator_category |
typedef | wp_type (value_type, exact_type) value_type |
Public Member Functions | |
typedef | wp_get_exact (Bottom, iterator< Bottom >) exact_type |
Equality checks | |
bool | operator== (const exact_type &) const |
bool | operator!= (const exact_type &) const |
Increment operators | |
const exact_type & | operator++ () |
exact_type | operator++ (int) |
Indirections | |
const value_type & | operator * () const |
const value_type * | operator-> () const |
Protected Member Functions | |
~iterator () |
iterator provides the standard operators one expects from iterators (==
, !=
, ++
, *
, ->
).
To subclass iterator, you must provide the following methods:
equal
(const exact_type&
) : Equality check.
increment()
: Increment the iterator.
get()
and get_ptr()
: Indirection (as a reference and as a pointer).
tool::iterator< B >::~iterator | ( | ) | [inline, protected] |
Protected destructor: iterator is abstract.
typedef tool::iterator< Bottom >::wp_get_exact | ( | Bottom | , | |
iterator< Bottom > | ||||
) |
Exact type for this template instantiation.