31 #if defined(OutputIteratorAdapter_RECURSES)
32 #error Recursive header files inclusion detected in OutputIteratorAdapter.h
35 #define OutputIteratorAdapter_RECURSES
37 #if !defined OutputIteratorAdapter_h
39 #define OutputIteratorAdapter_h
43 #include "DGtal/base/Common.h"
44 #include "DGtal/base/ConstAlias.h"
45 #include "DGtal/base/BasicFunctors.h"
46 #include "DGtal/base/CUnaryFunctor.h"
47 #include "DGtal/base/Circulator.h"
74 template <
typename TIterator,
typename TFunctor,
typename TInputValue>
92 typename std::iterator_traits<Iterator>::value_type&, TInputValue& > ));
126 myF->operator()( *myIt ) = aValue;
184 #undef OutputIteratorAdapter_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Adapts an output iterator i with a unary functor f, both given at construction,...
std::output_iterator_tag iterator_category
OutputIteratorAdapter & operator++()
OutputIteratorAdapter(const OutputIteratorAdapter &other)
OutputIteratorAdapter & operator=(const TInputValue &aValue)
OutputIteratorAdapter(const Iterator &it, ConstAlias< TFunctor > f)
OutputIteratorAdapter & operator*()
OutputIteratorAdapter operator++(int)
BOOST_CONCEPT_ASSERT((boost::ForwardIterator< Iterator >))
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, typename std::iterator_traits< Iterator >::value_type &, TInputValue & >))
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a unary functor, which associates arguments to results.
Go to http://www.sgi.com/tech/stl/ForwardIterator.html.