31 #if defined(ConstIteratorAdapter_RECURSES)
32 #error Recursive header files inclusion detected in ConstIteratorAdapter.h
33 #else // defined(ConstIteratorAdapter_RECURSES)
35 #define ConstIteratorAdapter_RECURSES
37 #if !defined ConstIteratorAdapter_h
39 #define ConstIteratorAdapter_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/IteratorTraits.h"
46 #include <boost/iterator/iterator_adaptor.hpp>
47 #include <boost/utility.hpp>
78 template <
typename TIterator,
typename TLightFunctor,
typename TReturnType =
typename TLightFunctor::Value >
80 :
public boost::iterator_adaptor< ConstIteratorAdapter<TIterator,TLightFunctor,TReturnType>,
81 TIterator, TReturnType, boost::use_default, TReturnType >
84 boost::iterator_adaptor< ConstIteratorAdapter<TIterator,TLightFunctor,TReturnType>,
85 TIterator, TReturnType, boost::use_default, TReturnType >
116 ,
class OtherIterator
117 ,
class OtherReturnType>
141 {
return myF(*this->base()); }
158 #endif // !defined ConstIteratorAdapter_h
160 #undef ConstIteratorAdapter_RECURSES
161 #endif // else defined(ConstIteratorAdapter_RECURSES)