DGtal 1.4.0
|
Aim: Adapts an output iterator i with a unary functor f, both given at construction, so that the element pointed to by i is updated with a given value through f. More...
#include <DGtal/base/OutputIteratorAdapter.h>
Public Types | |
using | iterator_category = std::output_iterator_tag |
using | value_type = void |
using | difference_type = void |
using | pointer = void |
using | reference = void |
typedef TIterator | Iterator |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((boost::ForwardIterator< Iterator >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, typename std::iterator_traits< Iterator >::value_type &, TInputValue & >)) | |
OutputIteratorAdapter (const Iterator &it, ConstAlias< TFunctor > f) | |
OutputIteratorAdapter (const OutputIteratorAdapter &other) | |
~OutputIteratorAdapter () | |
OutputIteratorAdapter & | operator= (const TInputValue &aValue) |
OutputIteratorAdapter & | operator* () |
OutputIteratorAdapter & | operator++ () |
OutputIteratorAdapter | operator++ (int) |
Private Attributes | |
Iterator | myIt |
const TFunctor * | myF |
Aim: Adapts an output iterator i with a unary functor f, both given at construction, so that the element pointed to by i is updated with a given value through f.
Description of template class 'OutputIteratorAdapter'
TIterator | an output iterator |
TInputValue | any input value |
TFunctor | a unary functor with reference on the element type as argument type and reference on the the input value type as return type |
Definition at line 75 of file OutputIteratorAdapter.h.
using DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::difference_type = void |
Definition at line 83 of file OutputIteratorAdapter.h.
typedef TIterator DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::Iterator |
Definition at line 89 of file OutputIteratorAdapter.h.
using DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::iterator_category = std::output_iterator_tag |
Definition at line 81 of file OutputIteratorAdapter.h.
using DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::pointer = void |
Definition at line 84 of file OutputIteratorAdapter.h.
using DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::reference = void |
Definition at line 85 of file OutputIteratorAdapter.h.
using DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::value_type = void |
Definition at line 82 of file OutputIteratorAdapter.h.
|
inline |
Constructor.
it | any iterator |
f | any functor |
Definition at line 101 of file OutputIteratorAdapter.h.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 108 of file OutputIteratorAdapter.h.
|
inline |
DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::BOOST_CONCEPT_ASSERT | ( | (boost::ForwardIterator< Iterator >) | ) |
DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, typename std::iterator_traits< Iterator >::value_type &, TInputValue & >) | ) |
|
inline |
Dereference operator
Definition at line 134 of file OutputIteratorAdapter.h.
|
inline |
Pre-increment operator
Definition at line 140 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myIt.
|
inline |
Post-increment operator
Definition at line 146 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myIt.
|
inline |
Assignment
aValue | any value |
Definition at line 124 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myF.
|
private |
Aliasing pointer on the underlying functor
Definition at line 170 of file OutputIteratorAdapter.h.
Referenced by DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::operator=().
|
private |
Underlying iterator
Definition at line 165 of file OutputIteratorAdapter.h.
Referenced by DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::operator++(), and DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::operator++().