Audio Processing Framework (APF) version 0.5.0
|
An output iterator which adds on assignment. More...
#include <apf/iterator.h>
Classes | |
class | output_proxy |
Helper class. More... | |
Public Types | |
using | iterator_category = std::output_iterator_tag |
using | value_type = void |
using | difference_type = void |
using | pointer = void |
using | reference = void |
Public Member Functions | |
accumulating_iterator (I base_iterator) | |
Constructor from base iterator. More... | |
accumulating_iterator () | |
Default constructor. More... | |
output_proxy | operator* () |
Dereference operator. More... | |
self & | operator++ () |
Straightforward preincrement operator. More... | |
self | operator++ (int) |
Postincrement operator (using preincrement operator). More... | |
I | base () const |
Get the base iterator, inspired by std::reverse_iterator::base(). More... | |
An output iterator which adds on assignment.
Whenever the operator= of a pointee is called, its operator+= is invoked. This is done by the helper class output_proxy.
The idea to this iterator comes from boost::function_output_iterator: http://www.boost.org/doc/libs/release/libs/iterator/doc/function_output_iterator.html
I | Base iterator type |
Definition at line 445 of file iterator.h.
using apf::accumulating_iterator< I >::iterator_category = std::output_iterator_tag |
Definition at line 451 of file iterator.h.
using apf::accumulating_iterator< I >::value_type = void |
Definition at line 452 of file iterator.h.
using apf::accumulating_iterator< I >::difference_type = void |
Definition at line 453 of file iterator.h.
using apf::accumulating_iterator< I >::pointer = void |
Definition at line 454 of file iterator.h.
using apf::accumulating_iterator< I >::reference = void |
Definition at line 455 of file iterator.h.
|
inlineexplicit |
Constructor from base iterator.
base_iterator | base iterator |
Definition at line 457 of file iterator.h.
|
inline |
Default constructor.
Definition at line 457 of file iterator.h.
|
inline |
Dereference operator.
Definition at line 477 of file iterator.h.
References apf::no_nullptr().
Referenced by apf::transform_iterator< I, F >::operator->().
|
inline |
Straightforward preincrement operator.
Definition at line 486 of file iterator.h.
|
inline |
Postincrement operator (using preincrement operator).
Definition at line 487 of file iterator.h.
|
inline |
Get the base iterator, inspired by std::reverse_iterator::base().
Definition at line 489 of file iterator.h.