DGtal
0.6.devel
|
#include <SimpleConstRange.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef std::reverse_iterator < ConstIterator > | ConstReverseIterator |
typedef Circulator< ConstIterator > | ConstCirculator |
typedef std::reverse_iterator < ConstCirculator > | ConstReverseCirculator |
Public Member Functions | |
SimpleConstRange (const TConstIterator &itb, const TConstIterator &ite) | |
SimpleConstRange (const SimpleConstRange &other) | |
SimpleConstRange & | operator= (const SimpleConstRange &other) |
~SimpleConstRange () | |
bool | isValid () const |
void | selfDisplay (std::ostream &out) const |
std::string | className () const |
ConstIterator | begin () const |
ConstIterator | end () const |
ConstReverseIterator | rbegin () const |
ConstReverseIterator | rend () const |
ConstCirculator | c () const |
ConstReverseCirculator | rc () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((boost::BidirectionalIterator< TConstIterator >)) |
Private Attributes | |
TConstIterator | myBegin |
TConstIterator | myEnd |
Aim: model of CConstRange 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) |
Definition at line 70 of file SimpleConstRange.h.
typedef Circulator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstCirculator |
Definition at line 81 of file SimpleConstRange.h.
typedef TConstIterator DGtal::SimpleConstRange< TConstIterator >::ConstIterator |
Definition at line 78 of file SimpleConstRange.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseCirculator |
Definition at line 82 of file SimpleConstRange.h.
typedef std::reverse_iterator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseIterator |
Definition at line 79 of file SimpleConstRange.h.
|
inline |
Standard constructor from two iterators and one functor.
itb | begin iterator. |
ite | end iterator. |
aFunctor | functor used to adapt on-the-fly the elements of the range |
Definition at line 94 of file SimpleConstRange.h.
|
inline |
|
inline |
|
inline |
Iterator service.
Definition at line 171 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myBegin.
Referenced by DGtal::SimpleConstRange< TConstIterator >::c(), and DGtal::SimpleConstRange< TConstIterator >::rend().
|
private |
|
inline |
Circulator service.
Definition at line 203 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::begin(), and DGtal::SimpleConstRange< TConstIterator >::end().
Referenced by DGtal::SimpleConstRange< TConstIterator >::rc().
|
inline |
Definition at line 147 of file SimpleConstRange.h.
|
inline |
Iterator service.
Definition at line 179 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myEnd.
Referenced by DGtal::SimpleConstRange< TConstIterator >::c(), and DGtal::SimpleConstRange< TConstIterator >::rbegin().
|
inline |
Checks the validity/consistency of the object.
Definition at line 128 of file SimpleConstRange.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 109 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myBegin, and DGtal::SimpleConstRange< TConstIterator >::myEnd.
|
inline |
Iterator service.
Definition at line 187 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::end().
|
inline |
Circulator service.
Definition at line 211 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::c().
|
inline |
Iterator service.
Definition at line 195 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::begin().
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 135 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myBegin, and DGtal::SimpleConstRange< TConstIterator >::myEnd.
|
private |
Begin underlying iterator
Definition at line 158 of file SimpleConstRange.h.
Referenced by DGtal::SimpleConstRange< TConstIterator >::begin(), DGtal::SimpleConstRange< TConstIterator >::operator=(), and DGtal::SimpleConstRange< TConstIterator >::selfDisplay().
|
private |
End underlying iterator
Definition at line 162 of file SimpleConstRange.h.
Referenced by DGtal::SimpleConstRange< TConstIterator >::end(), DGtal::SimpleConstRange< TConstIterator >::operator=(), and DGtal::SimpleConstRange< TConstIterator >::selfDisplay().