DGtal 1.3.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 | |
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.
typedef TIterator DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::Iterator |
Definition at line 82 of file OutputIteratorAdapter.h.
|
inline |
Constructor.
it | any iterator |
f | any functor |
Definition at line 94 of file OutputIteratorAdapter.h.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 101 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 127 of file OutputIteratorAdapter.h.
|
inline |
Pre-increment operator
Definition at line 133 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myIt.
|
inline |
Post-increment operator
Definition at line 139 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myIt.
|
inline |
Assignment
aValue | any value |
Definition at line 117 of file OutputIteratorAdapter.h.
References DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::myF.
|
private |
Aliasing pointer on the underlying functor
Definition at line 163 of file OutputIteratorAdapter.h.
Referenced by DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::operator=().
|
private |
Underlying iterator
Definition at line 158 of file OutputIteratorAdapter.h.
Referenced by DGtal::OutputIteratorAdapter< TIterator, TFunctor, TInputValue >::operator++().