DGtal 2.0.0
|
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 boost::reverse_iterator< ConstIterator > | ConstReverseIterator |
typedef Circulator< ConstIterator > | ConstCirculator |
typedef boost::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 73 of file SimpleConstRange.h.
typedef Circulator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstCirculator |
Definition at line 84 of file SimpleConstRange.h.
typedef TConstIterator DGtal::SimpleConstRange< TConstIterator >::ConstIterator |
Definition at line 81 of file SimpleConstRange.h.
typedef boost::reverse_iterator<ConstCirculator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseCirculator |
Definition at line 85 of file SimpleConstRange.h.
typedef boost::reverse_iterator<ConstIterator> DGtal::SimpleConstRange< TConstIterator >::ConstReverseIterator |
Definition at line 82 of file SimpleConstRange.h.
|
inline |
Standard constructor from two iterators and one functor.
itb | begin iterator. |
ite | end iterator. |
Definition at line 96 of file SimpleConstRange.h.
References myBegin, and myEnd.
Referenced by operator=(), and SimpleConstRange().
|
inline |
|
inline |
|
inline |
Iterator service.
Definition at line 173 of file SimpleConstRange.h.
References myBegin.
|
private |
|
inline |
Circulator service.
Definition at line 205 of file SimpleConstRange.h.
References begin(), and end().
Referenced by rc().
|
inline |
Definition at line 149 of file SimpleConstRange.h.
|
inline |
Iterator service.
Definition at line 181 of file SimpleConstRange.h.
References myEnd.
|
inline |
Checks the validity/consistency of the object.
Definition at line 130 of file SimpleConstRange.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 111 of file SimpleConstRange.h.
References myBegin, myEnd, and SimpleConstRange().
|
inline |
Iterator service.
Definition at line 189 of file SimpleConstRange.h.
References end().
|
inline |
Circulator service.
Definition at line 213 of file SimpleConstRange.h.
References c().
|
inline |
Iterator service.
Definition at line 197 of file SimpleConstRange.h.
References begin().
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 137 of file SimpleConstRange.h.
|
private |
Begin underlying iterator
Definition at line 160 of file SimpleConstRange.h.
Referenced by begin(), operator=(), selfDisplay(), SimpleConstRange(), and SimpleConstRange().
|
private |
End underlying iterator
Definition at line 164 of file SimpleConstRange.h.
Referenced by end(), operator=(), selfDisplay(), SimpleConstRange(), and SimpleConstRange().