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