DGtal
1.5.beta
|
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). More...
#include <DGtal/base/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 72 of file SimpleConstRange.h.
typedef Circulator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstCirculator |
Definition at line 83 of file SimpleConstRange.h.
typedef TConstIterator DGtal::SimpleConstRange< TConstIterator >::ConstIterator |
Definition at line 80 of file SimpleConstRange.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseCirculator |
Definition at line 84 of file SimpleConstRange.h.
typedef std::reverse_iterator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseIterator |
Definition at line 81 of file SimpleConstRange.h.
|
inline |
Standard constructor from two iterators and one functor.
itb | begin iterator. |
ite | end iterator. |
Definition at line 95 of file SimpleConstRange.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 102 of file SimpleConstRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 172 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 204 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::begin(), and DGtal::SimpleConstRange< TConstIterator >::end().
Referenced by DGtal::SimpleConstRange< TConstIterator >::rc().
|
inline |
Definition at line 148 of file SimpleConstRange.h.
|
inline |
Iterator service.
Definition at line 180 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 129 of file SimpleConstRange.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 110 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myBegin, and DGtal::SimpleConstRange< TConstIterator >::myEnd.
|
inline |
Iterator service.
Definition at line 188 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::end().
|
inline |
Circulator service.
Definition at line 212 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::c().
|
inline |
Iterator service.
Definition at line 196 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 136 of file SimpleConstRange.h.
References DGtal::SimpleConstRange< TConstIterator >::myBegin, and DGtal::SimpleConstRange< TConstIterator >::myEnd.
|
private |
Begin underlying iterator
Definition at line 159 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 163 of file SimpleConstRange.h.
Referenced by DGtal::SimpleConstRange< TConstIterator >::end(), DGtal::SimpleConstRange< TConstIterator >::operator=(), and DGtal::SimpleConstRange< TConstIterator >::selfDisplay().