ZipForEachIterator< I1, I2 > Class Template Reference

#include <foreach.h>

Inheritance diagram for ZipForEachIterator< I1, I2 >:

Public Types

using First = I1
 
using Second = I2
 
using ValueType = Pair< decltype(*std::declval< I1 >()), decltype(*std::declval< I2 >())>
 
- Public Types inherited from ForEachIterator< ZipForEachIterator< I1, I2 > >
using IsForEachIterator = std::true_type
 

Public Member Functions

 ZipForEachIterator (I1 &&it1, I2 &&it2)
 
 ZipForEachIterator (const I1 &it1, I2 &&it2)
 
 ZipForEachIterator (I1 &&it1, const I2 &it2)
 
 ZipForEachIterator (const I1 &it1, const I2 &it2)
 
 ZipForEachIterator (ZipForEachIterator &&src)
 
 ZipForEachIterator (const ZipForEachIterator &src)=default
 
MAXON_ATTRIBUTE_FORCE_INLINE operator Bool () const
 
MAXON_ATTRIBUTE_FORCE_INLINE void operator++ ()
 
MAXON_ATTRIBUTE_FORCE_INLINE ValueType operator* () const
 
- Public Member Functions inherited from ForEachIterator< ZipForEachIterator< I1, I2 > >
MAXON_ATTRIBUTE_FORCE_INLINE ForEachIterator (ARGS &&... args)
 
String ToString (const FormatStatement *formatStatement=nullptr)
 
ZipForEachIterator< I1, I2 > & Find (const T &v)
 
Int FindIndex (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Bool Contains (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper begin ()
 

Private Attributes

I1 _first
 
I2 _second
 

Additional Inherited Members

- Static Public Member Functions inherited from ForEachIterator< ZipForEachIterator< I1, I2 > >
static MAXON_ATTRIBUTE_FORCE_INLINE PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end()
 

Member Typedef Documentation

◆ First

using First = I1

◆ Second

using Second = I2

◆ ValueType

using ValueType = Pair<decltype(*std::declval<I1>()), decltype(*std::declval<I2>())>

Constructor & Destructor Documentation

◆ ZipForEachIterator() [1/6]

ZipForEachIterator ( I1 &&  it1,
I2 &&  it2 
)

◆ ZipForEachIterator() [2/6]

ZipForEachIterator ( const I1 &  it1,
I2 &&  it2 
)

◆ ZipForEachIterator() [3/6]

ZipForEachIterator ( I1 &&  it1,
const I2 &  it2 
)

◆ ZipForEachIterator() [4/6]

ZipForEachIterator ( const I1 &  it1,
const I2 &  it2 
)

◆ ZipForEachIterator() [5/6]

ZipForEachIterator ( ZipForEachIterator< I1, I2 > &&  src)

◆ ZipForEachIterator() [6/6]

ZipForEachIterator ( const ZipForEachIterator< I1, I2 > &  src)
default

Member Function Documentation

◆ operator Bool()

MAXON_ATTRIBUTE_FORCE_INLINE operator Bool ( ) const
explicit

◆ operator++()

MAXON_ATTRIBUTE_FORCE_INLINE void operator++ ( )

◆ operator*()

Member Data Documentation

◆ _first

I1 _first
private

◆ _second

I2 _second
private