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>
76 public std::iterator<std::output_iterator_tag,void,void,void,void>
85 typename std::iterator_traits<Iterator>::value_type&, TInputValue& > ));
119 myF->operator()( *myIt ) = aValue;
177#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,...
OutputIteratorAdapter & operator*()
OutputIteratorAdapter & operator=(const TInputValue &aValue)
OutputIteratorAdapter(const OutputIteratorAdapter &other)
OutputIteratorAdapter(const Iterator &it, ConstAlias< TFunctor > f)
OutputIteratorAdapter operator++(int)
BOOST_CONCEPT_ASSERT((boost::ForwardIterator< Iterator >))
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, typename std::iterator_traits< Iterator >::value_type &, TInputValue & >))
OutputIteratorAdapter & operator++()
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.