34 #if defined(ConstRangeFromPointAdapter_RECURSES)
35 #error Recursive header files inclusion detected in ConstRangeFromPointAdapter.h
36 #else // defined(ConstRangeFromPointAdapter_RECURSES)
38 #define ConstRangeFromPointAdapter_RECURSES
40 #if !defined ConstRangeFromPointAdapter_h
42 #define ConstRangeFromPointAdapter_h
46 #include "DGtal/base/ConstAlias.h"
47 #include "DGtal/base/BasicFunctors.h"
48 #include "DGtal/base/Circulator.h"
49 #include "DGtal/base/CConstBidirectionalRangeFromPoint.h"
50 #include "DGtal/base/ConstIteratorAdapter.h"
51 #include "boost/concept_check.hpp"
85 template <
typename TRange,
typename TFunctor,
typename TReturnType>
124 if (
this != &other )
196 if ( it != this->
end() ) ++it;
216 #endif // !defined ConstRangeFromPointAdapter_h
218 #undef ConstRangeFromPointAdapter_RECURSES
219 #endif // else defined(ConstRangeFromPointAdapter_RECURSES)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ConstReverseIterator rend() const
ConstIterator begin() const
ConstIteratorAdapter< typename TRange::ConstIterator, TFunctor, TReturnType > ConstIterator
ConstReverseIterator rbegin(const Point &aPoint) const
const TRange * myRangePtr
DGtal is the top-level namespace which contains all DGtal functions and types.
std::reverse_iterator< ConstIterator > ConstReverseIterator
~ConstRangeFromPointAdapter()
BOOST_CONCEPT_ASSERT((CConstBidirectionalRangeFromPoint< TRange >))
ConstRangeFromPointAdapter(const ConstRangeFromPointAdapter &other)
const TFunctor * myFunctorPtr
Aim: model of CConstBidirectionalRangeFromPoint that adapts any bidirectional range and provides serv...
ConstRangeFromPointAdapter(ConstAlias< TRange > aRange, ConstAlias< TFunctor > aFunctor)
ConstIterator begin(const Point &aPoint) const
ConstIterator end() const
ConstRangeFromPointAdapter & operator=(const ConstRangeFromPointAdapter &other)
ConstReverseIterator rbegin() const
This class adapts any iterator so that operator* returns another element than the one pointed to by t...