gatb.core-API-0.0.0
|
Iterator that gather two iterators in a single loop. More...
#include <IteratorHelpers.hpp>
Public Member Functions | |
CompoundIterator (Iterator< T1 > &it1, Iterator< T2 > &it2, const Update &update) | |
void | first () |
void | next () |
bool | isDone () |
T2 & | item () |
Public Member Functions inherited from Iterator< T2 > | |
T2 * | operator-> () |
T2 & | operator* () |
void | iterate (const Functor &f) |
virtual void | setItem (T2 &i) |
bool | get (std::vector< T2 > ¤t) |
virtual void | reset () |
virtual void | finalize () |
virtual std::vector< Iterator< T2 > * > | getComposition () |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Iterator that gather two iterators in a single loop.
This iterator is equivalent to two iterators with one outer loop and one inner loop.
|
inline |
Constructor.
[in] | it1 | : iterator for the outer loop. |
[in] | it2 | : iterator for the inner loop. |
[in] | update | : functor for updating inner loop with new item from outer loop |
|
inlinevirtual |
Method that initializes the iteration.
Implements Iterator< T2 >.
|
inlinevirtual |
Method telling whether the iteration is finished or not.
Implements Iterator< T2 >.
|
inlinevirtual |
Method that returns the current iterated item. Note that the returned type is the template type.
Implements Iterator< T2 >.
|
inlinevirtual |
Method that goes to the next item in the iteration.
Implements Iterator< T2 >.