33 #if defined(SimpleRandomAccessRangeFromPoint_RECURSES)
34 #error Recursive header files inclusion detected in SimpleRandomAccessRangeFromPoint.h
35 #else // defined(SimpleRandomAccessRangeFromPoint_RECURSES)
37 #define SimpleRandomAccessRangeFromPoint_RECURSES
39 #if !defined SimpleRandomAccessRangeFromPoint_h
41 #define SimpleRandomAccessRangeFromPoint_h
45 #include "DGtal/base/BasicFunctors.h"
46 #include "DGtal/base/Circulator.h"
47 #include "DGtal/base/IteratorAdapter.h"
48 #include "DGtal/base/CBidirectionalRangeFromPoint.h"
49 #include "boost/concept_check.hpp"
71 template <
typename TConstIterator,
typename TIterator,
typename DistanceFunctor>
78 BOOST_CONCEPT_ASSERT ( ( boost::UnaryFunction<DistanceFunctor,typename DistanceFunctor::Difference,typename DistanceFunctor::Point > ) );
84 typedef typename DistanceFunctor::Point
Point;
109 const TIterator& ite,
110 const DistanceFunctor & aDistance )
128 if (
this != &other )
160 out <<
"[SimpleRandomAccessRangeFromPoint]" << std::endl;
162 std::copy (
myBegin,
myEnd, ostream_iterator<Value> ( out,
", " ) );
171 return "SimpleRandomAccessRangeFromPoint";
378 #endif // !defined SimpleRandomAccessRangeFromPoint_h
380 #undef SimpleRandomAccessRangeFromPoint_RECURSES
381 #endif // else defined(SimpleRandomAccessRangeFromPoint_RECURSES)