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) | |
MutableIter & | operator++ (int) |
MutableIter & | operator= (const MutableIter &iterator) |
bool | equals (const MutableIter &iterator) const |
bool | operator== (const MutableIter &iterator) const |
bool | operator!= (const MutableIter &iterator) const |
This concept is matched by all mutable iterators and is used by container implementing the MutableCollection 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.
bool equals | ( | const MutableIter< T > & | iterator | ) | const |
Test if two iterators are equal.
iterator | Iterator to test with. |
T& item | ( | void | ) |
bool operator!= | ( | const MutableIter< T > & | iterator | ) | const |
Test for inequality.
MutableIter& operator++ | ( | int | ) |
Same as next().
MutableIter& operator= | ( | const MutableIter< T > & | iterator | ) |
Assign an operator position to the current one.
iterator | Iterator to set the position of. |
bool operator== | ( | const MutableIter< T > & | iterator | ) | const |
Test for equality.