#include <Iterator.h>
Inheritance diagram for util::Iterator< T >:

An iterable collection may be represented as a list, hash table or whatever. The methods in this interface provide sequential acces to the data a collection contains.
Public Methods | |
| virtual void | reset (void)=0 |
| Reset the iterator. | |
| virtual T * | next (void)=0 |
| Get the next object in a collection. | |
| virtual bool | hasNext (void) const=0 |
| Check whether the collection has more data to fetch. | |
|
||||||||||
|
Check whether the collection has more data to fetch. A call to next() should return new data until this method returns false. Implemented in util::Hashtable< key, value >, util::List< T >, util::Hashtable< int, SignalHandler * >, util::Hashtable< std::string, Serializer * >, util::Hashtable< std::string, std::string >, util::List< Sensor * >, util::List< EventListener< ClassificationEvent< T, I, C > > * >, util::List< EventListener< OptimizationEvent > * >, util::List< Node * >, util::List< Tree * >, util::List< EventListener< ClassificationEvent< T, I, int > > * >, util::List< int >, util::List< EventListener< T > * >, util::List< ThreadListener * >, util::List< Section * >, util::List< ConfusionMatrix >, util::List< EventListener< EvolutionEvent< T > > * >, and util::List< EventListener< ClassificationEvent< double, I, C > > * >. |
|
||||||||||
|
Get the next object in a collection. The collection should maintain an internal counter for sequential access.
Implemented in util::Hashtable< key, value >, util::List< T >, util::Hashtable< int, SignalHandler * >, util::Hashtable< std::string, Serializer * >, util::Hashtable< std::string, std::string >, util::List< Sensor * >, util::List< EventListener< ClassificationEvent< T, I, C > > * >, util::List< EventListener< OptimizationEvent > * >, util::List< Node * >, util::List< Tree * >, util::List< EventListener< ClassificationEvent< T, I, int > > * >, util::List< int >, util::List< EventListener< T > * >, util::List< ThreadListener * >, util::List< Section * >, util::List< ConfusionMatrix >, util::List< EventListener< EvolutionEvent< T > > * >, and util::List< EventListener< ClassificationEvent< double, I, C > > * >. |
|
||||||||||