20 #ifndef TULIP_CONCATITERATOR_H 21 #define TULIP_CONCATITERATOR_H 23 #include <tulip/Iterator.h> 62 return (itOne->hasNext() || itTwo->hasNext());
Interface for Tulip iterators. Allows basic iteration operations only.
bool hasNext() override
Tells if the sequence is at its end.
T next() override
Moves the Iterator on the next element.
~ConcatIterator() override
Deletes the two iterators it was given at construction.
This Iterator iterates over the sequence formed by the concatenation of the sequences it is given...
ConcatIterator(Iterator< T > *itOne, Iterator< T > *itTwo)
Creates an Iterator that iterates over the concatenation of the two sequences it is given...
Iterator< T > * concatIterator(Iterator< T > *itOne, Iterator< T > *itTwo)
Convenient function for creating a ConcatIterator.