DGtal 1.4.0
|
Aim: model of CConstBidirectionalRangeFromPoint that adapts any range of elements bounded by two iterators [itb, ite) and provides services to (circularly)iterate over it (in a read-only manner). More...
#include <DGtal/base/SimpleRandomAccessConstRangeFromPoint.h>
Public Types | |
typedef DistanceFunctor::Point | Point |
typedef TConstIterator | ConstIterator |
typedef std::reverse_iterator< ConstIterator > | ConstReverseIterator |
typedef Circulator< ConstIterator > | ConstCirculator |
typedef std::reverse_iterator< ConstCirculator > | ConstReverseCirculator |
Public Member Functions | |
SimpleRandomAccessConstRangeFromPoint (const TConstIterator &itb, const TConstIterator &ite, const DistanceFunctor &aDistance) | |
SimpleRandomAccessConstRangeFromPoint (const SimpleRandomAccessConstRangeFromPoint &other) | |
SimpleRandomAccessConstRangeFromPoint & | operator= (const SimpleRandomAccessConstRangeFromPoint &other) |
~SimpleRandomAccessConstRangeFromPoint () | |
bool | isValid () const |
void | selfDisplay (std::ostream &out) const |
std::string | className () const |
ConstIterator | begin () const |
ConstIterator | begin (const Point &aPoint) const |
ConstIterator | end () const |
ConstReverseIterator | rbegin () const |
ConstReverseIterator | rbegin (const Point &aPoint) const |
ConstReverseIterator | rend () const |
ConstCirculator | c () const |
ConstReverseCirculator | rc () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessIterator< TConstIterator >)) | |
BOOST_CONCEPT_ASSERT ((boost::UnaryFunction< DistanceFunctor, typename DistanceFunctor::Difference, typename DistanceFunctor::Point >)) | |
Private Attributes | |
TConstIterator | myBegin |
TConstIterator | myEnd |
DistanceFunctor | myDistance |
Aim: model of CConstBidirectionalRangeFromPoint that adapts any range of elements bounded by two iterators [itb, ite) and provides services to (circularly)iterate over it (in a read-only manner).
TConstIterator | the type of the iterator to adapt (at least bidirectional) |
DistanceFunctor | type of distance from point functor for random access container models. Models must have a Point and a Difference inner types. operator() returns a number of type Difference on instances of Point) |
Definition at line 73 of file SimpleRandomAccessConstRangeFromPoint.h.
typedef Circulator<ConstIterator> DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::ConstCirculator |
Definition at line 89 of file SimpleRandomAccessConstRangeFromPoint.h.
typedef TConstIterator DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::ConstIterator |
Definition at line 86 of file SimpleRandomAccessConstRangeFromPoint.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::ConstReverseCirculator |
Definition at line 90 of file SimpleRandomAccessConstRangeFromPoint.h.
typedef std::reverse_iterator<ConstIterator> DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::ConstReverseIterator |
Definition at line 87 of file SimpleRandomAccessConstRangeFromPoint.h.
typedef DistanceFunctor::Point DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::Point |
Definition at line 84 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Standard constructor from two iterators and one functor.
itb | begin iterator. |
ite | end iterator. |
aDistance | functor used to adapt on-the-fly the elements of the range |
Definition at line 102 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 109 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Destructor. Does nothing.
Definition at line 132 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Iterator service.
Definition at line 191 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin.
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::c(), SECTION(), SECTION(), test_image(), testImage(), and testImageFromSet().
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 202 of file SimpleRandomAccessConstRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myDistance.
|
private |
|
private |
|
inline |
Circulator service.
Definition at line 249 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end().
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rc(), and SECTION().
|
inline |
Definition at line 160 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Iterator service.
Definition at line 211 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myEnd.
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::c(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), SECTION(), SECTION(), test_image(), testImage(), and testImageFromSet().
|
inline |
Checks the validity/consistency of the object.
Definition at line 138 of file SimpleRandomAccessConstRangeFromPoint.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 117 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin, DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myDistance, and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myEnd.
|
inline |
Iterator service.
Definition at line 220 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end().
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 230 of file SimpleRandomAccessConstRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myDistance.
|
inline |
Circulator service.
Definition at line 258 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::c().
Referenced by SECTION().
|
inline |
Iterator service.
Definition at line 240 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 148 of file SimpleRandomAccessConstRangeFromPoint.h.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::myEnd.
|
private |
Begin underlying iterator
Definition at line 172 of file SimpleRandomAccessConstRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::operator=(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rend(), and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::selfDisplay().
|
private |
Underlying distance function
Definition at line 181 of file SimpleRandomAccessConstRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::operator=(), and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin().
|
private |
End underlying iterator
Definition at line 176 of file SimpleRandomAccessConstRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::operator=(), and DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::selfDisplay().