NiHu  2.0
NiHu::dual_iterator< iteration::diagonal, It1, It2 > Class Template Reference

two iterators traversing in parallel mode More...

#include <dual_range.hpp>

Public Types

typedef dual_iterator type
 self-returning metafunction
 

Public Member Functions

 dual_iterator (It1 it1, It2 it2)
 constructor More...
 
const dual_iteratoroperator++ ()
 increment operator More...
 
bool operator!= (dual_iterator< iteration::diagonal, It1, It2 > const &other) const
 compare two iterators More...
 
const It1 & get_first (void) const
 return first iterator More...
 
const It2 & get_second (void) const
 return second iterator More...
 

Detailed Description

template<class It1, class It2>
class NiHu::dual_iterator< iteration::diagonal, It1, It2 >

two iterators traversing in parallel mode

Template Parameters
It1the first iterator type
It2the second iterator type

Definition at line 49 of file dual_range.hpp.

Constructor & Destructor Documentation

◆ dual_iterator()

template<class It1 , class It2 >
NiHu::dual_iterator< iteration::diagonal, It1, It2 >::dual_iterator ( It1  it1,
It2  it2 
)
inline

constructor

Parameters
[in]it1the first iterator
[in]it2the second iterator

Definition at line 62 of file dual_range.hpp.

Member Function Documentation

◆ get_first()

template<class It1 , class It2 >
const It1& NiHu::dual_iterator< iteration::diagonal, It1, It2 >::get_first ( void  ) const
inline

return first iterator

Returns
reference to the first iterator

Definition at line 89 of file dual_range.hpp.

◆ get_second()

template<class It1 , class It2 >
const It2& NiHu::dual_iterator< iteration::diagonal, It1, It2 >::get_second ( void  ) const
inline

return second iterator

Returns
reference to the second iterator

Definition at line 97 of file dual_range.hpp.

◆ operator!=()

template<class It1 , class It2 >
bool NiHu::dual_iterator< iteration::diagonal, It1, It2 >::operator!= ( dual_iterator< iteration::diagonal, It1, It2 > const &  other) const
inline

compare two iterators

Returns
true if the iterators are different

Definition at line 80 of file dual_range.hpp.

◆ operator++()

template<class It1 , class It2 >
const dual_iterator& NiHu::dual_iterator< iteration::diagonal, It1, It2 >::operator++ ( )
inline

increment operator

Returns
reference to the incremented dual iterator

Definition at line 70 of file dual_range.hpp.


The documentation for this class was generated from the following file: