Audio Processing Framework (APF) version 0.5.0
|
Iterate over two iterators at once. More...
#include <apf/iterator.h>
Classes | |
class | output_proxy |
Helper class for dual_iterator. More... | |
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = std::pair< typename std::iterator_traits< I1 >::value_type, typename std::iterator_traits< I2 >::value_type > |
using | reference = output_proxy |
using | difference_type = std::ptrdiff_t |
using | pointer = void |
Public Member Functions | |
dual_iterator (I1 i1, I2 i2) | |
Constructor from two iterators. More... | |
reference | operator* () |
Dereference operator. More... | |
self & | operator++ () |
Pre-increment operator. More... | |
bool | operator== (const self &rhs) const |
Equality operator. More... | |
self | operator++ (int) |
Postincrement operator (using preincrement operator). More... | |
bool | operator!= (const self &rhs) const |
Unequality operator (using equality operator). More... | |
Iterate over two iterators at once.
For now, the dual_iterator has the features of a forward iterator, but it could be upgraded if need should arise.
dual_iterator has some special features (see output_proxy):
std::pair
is assigned, the two values are assigned to the two iterators, respectively.+=
operator can also be used with similar behaviourstd::pair
(if the value_types
are convertible). Definition at line 1209 of file iterator.h.
using apf::dual_iterator< I1, I2 >::iterator_category = std::forward_iterator_tag |
Definition at line 1217 of file iterator.h.
using apf::dual_iterator< I1, I2 >::value_type = std::pair<typename std::iterator_traits<I1>::value_type , typename std::iterator_traits<I2>::value_type> |
Definition at line 1219 of file iterator.h.
using apf::dual_iterator< I1, I2 >::reference = output_proxy |
Definition at line 1223 of file iterator.h.
using apf::dual_iterator< I1, I2 >::difference_type = std::ptrdiff_t |
Definition at line 1225 of file iterator.h.
using apf::dual_iterator< I1, I2 >::pointer = void |
Definition at line 1226 of file iterator.h.
|
inline |
Constructor from two iterators.
Definition at line 1231 of file iterator.h.
|
inline |
Dereference operator.
Definition at line 1235 of file iterator.h.
References apf::no_nullptr().
|
inline |
|
inline |
Equality operator.
Definition at line 1253 of file iterator.h.
|
inline |
Postincrement operator (using preincrement operator).
Definition at line 1258 of file iterator.h.
|
inline |
Unequality operator (using equality operator).
Definition at line 1259 of file iterator.h.