Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/Dev/elm/src/concepts.h>
Public Member Functions | |
bool | ended (void) |
void | next (void) |
T | item (void) |
operator bool (void) | |
operator T (void) | |
Iter & | operator++ (int) |
Iter & | operator= (const Iter &iterator) |
bool | equals (const Iter &iterator) const |
bool | operator== (const Iter &iterator) const |
bool | operator!= (const Iter &iterator) const |
This concept is matched by all iterators and is used by container implementing the Collection concept. It provides a way to traverse a collection of items. Notice that PreIterator provides a fast way to implement the operator overloads of this concept: iterator inheriting from PreIterator have just to implement ended(), item() and next().
T | Type of items of the collection. |
Test if the end of the traversal is reached.
Test if two iterators are equal.
iterator | Iterator to test with. |
T item | ( | void | ) |
Assign an operator position to the current one.
iterator | Iterator to set the position of. |