Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/otawa/elm/src/concepts.h>
Public Member Functions | |
Iterator (const Iterator &iterator) | |
bool | ended (void) |
void | next (void) |
const T & | item (void) |
operator bool (void) | |
operator const T & (void) | |
Iterator & | operator++ (int) |
Iterator & | operator= (const Iterator &iterator) |
This concept is matched by all iterators. It provides a way to traverse a collection of items. Class matching this concept must defines the following methods.
T | Type of items of the collection. |
elm::concept::Iterator< T >::Iterator | ( | const Iterator< T > & | iterator | ) |
Just a clone constructor.
iterator | Iterator to clone. |
bool elm::concept::Iterator< T >::ended | ( | void | ) |
Test if the end of the traversal is reached.
const T& elm::concept::Iterator< T >::item | ( | void | ) |
void Iterator::next | ( | void | ) |
Go to the next item.
Go to the next item of the iteration. It is an error to call it when ended() return true.
Iterator::operator bool | ( | void | ) |
elm::concept::Iterator< T >::operator const T & | ( | void | ) |
Same as item().
Iterator< T > & Iterator::operator++ | ( | int | _ | ) |
Iterator& elm::concept::Iterator< T >::operator= | ( | const Iterator< T > & | iterator | ) |
Assign an operator position to the current one.
iterator | Iterator to set the position of. |