Tulip  5.7.2
Large graphs analysis and drawing
tlp::ConcatIterator< T > Struct Template Reference

#include <ConcatIterator.h>

+ Inheritance diagram for tlp::ConcatIterator< T >:
+ Collaboration diagram for tlp::ConcatIterator< T >:

Public Member Functions

 ConcatIterator (Iterator< T > *itOne, Iterator< T > *itTwo)
 ~ConcatIterator () override
bool hasNext () override
next () override
- Public Member Functions inherited from tlp::Iterator< T >
iterator_t begin ()
iterator_t end ()

Detailed Description

template<class T>
struct tlp::ConcatIterator< T >

This Iterator iterates over the sequence formed by the concatenation of the sequences it is given.

This class takes ownership of the Iterators it is given.

Definition at line 33 of file ConcatIterator.h.

Constructor & Destructor Documentation

◆ ConcatIterator()

template<class T >
tlp::ConcatIterator< T >::ConcatIterator ( Iterator< T > *  itOne,
Iterator< T > *  itTwo 

Creates an Iterator that iterates over the concatenation of the two sequences it is given.

itOneThe first sequence to iterate upon.
itTwoThe second sequence, which will be iterated upon after the first sequence has been completely iterated upon.

Definition at line 43 of file ConcatIterator.h.

◆ ~ConcatIterator()

template<class T >
tlp::ConcatIterator< T >::~ConcatIterator ( )

Deletes the two iterators it was given at construction.

Definition at line 48 of file ConcatIterator.h.

Member Function Documentation

◆ hasNext()

template<class T >
bool tlp::ConcatIterator< T >::hasNext ( )

Tells if the sequence is at its end.

bool Whether there are more elements to iterate.

Implements tlp::Iterator< T >.

Definition at line 61 of file ConcatIterator.h.

◆ next()

template<class T >
T tlp::ConcatIterator< T >::next ( )

Moves the Iterator on the next element.

The current element pointed by the Iterator.

Implements tlp::Iterator< T >.

Definition at line 53 of file ConcatIterator.h.