A Pair-Iterator which gives a unified view of two ranges. More...
#include <shark/Core/utility/ZipPair.h>
Public Member Functions | |
PairIterator () | |
template<class IteratorT1 , class IteratorT2 > | |
PairIterator (IteratorT1 const &iterator1, IteratorT2 const &iterator2) | |
Copy-Constructs this iterator from some other IndexedIterator convertible to this. More... | |
template<class V , class I1 , class I2 > | |
PairIterator (PairIterator< V, I1, I2 > const &iterator) | |
Iterator1 | first () const |
Iterator2 | second () const |
std::pair< Iterator1, Iterator2 > | iterators () const |
Friends | |
template<class , class , class > | |
class | PairIterator |
class | SHARK_ITERATOR_CORE_ACCESS |
A Pair-Iterator which gives a unified view of two ranges.
A Pair-Iterator is an iterator which zips two ranges together and returns the zipped result. This implementation allows the return type to be an arbirtrary Pair which is then constructed using Reference(*iter1,*iter2) when the iterator is dereferenced. This allows for more expressive element access instead of iter->first or iter->second.
|
inline |
|
inline |
Copy-Constructs this iterator from some other IndexedIterator convertible to this.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |