DGtal
1.5.beta
|
Aim: model of CBidirectionalRangeFromPoint 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/SimpleRandomAccessRangeFromPoint.h>
Public Types | |
typedef DistanceFunctor::Point | Point |
typedef TIterator | Iterator |
typedef TConstIterator | ConstIterator |
typedef std::reverse_iterator< Iterator > | ReverseIterator |
typedef std::reverse_iterator< ConstIterator > | ConstReverseIterator |
typedef TIterator | OutputIterator |
typedef std::reverse_iterator< Iterator > | ReverseOutputIterator |
typedef DGtal::Circulator< Iterator > | Circulator |
typedef std::reverse_iterator< Circulator > | ReverseCirculator |
typedef DGtal::Circulator< ConstIterator > | ConstCirculator |
typedef std::reverse_iterator< ConstCirculator > | ConstReverseCirculator |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessIterator< TIterator >)) | |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessIterator< TConstIterator >)) | |
BOOST_CONCEPT_ASSERT ((boost::UnaryFunction< DistanceFunctor, typename DistanceFunctor::Difference, typename DistanceFunctor::Point >)) | |
Private Attributes | |
TIterator | myBegin |
TIterator | myEnd |
DistanceFunctor | myDistance |
Aim: model of CBidirectionalRangeFromPoint 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).
TIterator | 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 SimpleRandomAccessRangeFromPoint.h.
typedef DGtal::Circulator<Iterator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::Circulator |
Definition at line 95 of file SimpleRandomAccessRangeFromPoint.h.
typedef DGtal::Circulator<ConstIterator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ConstCirculator |
Definition at line 98 of file SimpleRandomAccessRangeFromPoint.h.
typedef TConstIterator DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ConstIterator |
Definition at line 87 of file SimpleRandomAccessRangeFromPoint.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ConstReverseCirculator |
Definition at line 99 of file SimpleRandomAccessRangeFromPoint.h.
typedef std::reverse_iterator<ConstIterator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ConstReverseIterator |
Definition at line 90 of file SimpleRandomAccessRangeFromPoint.h.
typedef TIterator DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::Iterator |
Definition at line 86 of file SimpleRandomAccessRangeFromPoint.h.
typedef TIterator DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::OutputIterator |
Definition at line 92 of file SimpleRandomAccessRangeFromPoint.h.
typedef DistanceFunctor::Point DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::Point |
Definition at line 84 of file SimpleRandomAccessRangeFromPoint.h.
typedef std::reverse_iterator<Circulator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ReverseCirculator |
Definition at line 96 of file SimpleRandomAccessRangeFromPoint.h.
typedef std::reverse_iterator<Iterator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ReverseIterator |
Definition at line 89 of file SimpleRandomAccessRangeFromPoint.h.
typedef std::reverse_iterator<Iterator> DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::ReverseOutputIterator |
Definition at line 93 of file SimpleRandomAccessRangeFromPoint.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 111 of file SimpleRandomAccessRangeFromPoint.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 120 of file SimpleRandomAccessRangeFromPoint.h.
|
inline |
|
inline |
Iterator service.
Definition at line 203 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin.
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::c().
|
inline |
Iterator service.
Definition at line 223 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin.
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 214 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 234 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
private |
|
private |
|
private |
|
inline |
Mutable circulator service.
Definition at line 358 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end().
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rc().
|
inline |
Constant circulator service.
Definition at line 376 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end().
|
inline |
Definition at line 172 of file SimpleRandomAccessRangeFromPoint.h.
|
inline |
Iterator service.
Definition at line 243 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myEnd.
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::c(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::routputIterator().
|
inline |
Iterator service.
Definition at line 252 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myEnd.
|
inline |
Checks the validity/consistency of the object.
Definition at line 150 of file SimpleRandomAccessRangeFromPoint.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 129 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myEnd.
|
inline |
OutputIterator service.
Definition at line 261 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin.
Referenced by testImage().
|
inline |
OutputIterator service.
aPoint | a point |
Definition at line 271 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
inline |
Iterator service.
Definition at line 299 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end().
|
inline |
Iterator service.
Definition at line 329 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end().
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 309 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
inline |
Iterator service.
aPoint | a Point |
Definition at line 339 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
inline |
Reverse mutable circulator service.
Definition at line 367 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::c().
|
inline |
Reverse constant circulator service.
Definition at line 385 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::c().
|
inline |
Iterator service.
Definition at line 319 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin.
|
inline |
Iterator service.
Definition at line 349 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin.
|
inline |
ReverseOutputIterator service.
Definition at line 280 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end().
|
inline |
ReverseOutputIterator service.
aPoint | a point |
Definition at line 290 of file SimpleRandomAccessRangeFromPoint.h.
References aPoint(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myDistance.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 160 of file SimpleRandomAccessRangeFromPoint.h.
References DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myBegin, and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::myEnd.
|
private |
Begin underlying iterator
Definition at line 184 of file SimpleRandomAccessRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::operator=(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::outputIterator(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rend(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::routputIterator(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::selfDisplay().
|
private |
Underlying distance function
Definition at line 193 of file SimpleRandomAccessRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::operator=(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::outputIterator(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::routputIterator().
|
private |
End underlying iterator
Definition at line 188 of file SimpleRandomAccessRangeFromPoint.h.
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::end(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::operator=(), and DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::selfDisplay().