DGtal 2.0.0
|
Aim: model of CRange that provides services to (circularly)iterate over the letters of the freeman chain. More...
#include <DGtal/geometry/curves/FreemanChain.h>
Public Types | |
typedef std::string::const_iterator | ConstIterator |
typedef std::string::const_reverse_iterator | ConstReverseIterator |
typedef Circulator< ConstIterator > | ConstCirculator |
typedef boost::reverse_iterator< ConstCirculator > | ConstReverseCirculator |
Public Member Functions | |
CodesRange () | |
CodesRange (const std::string &aChain) | |
CodesRange (const CodesRange &aOther) | |
CodesRange & | operator= (const CodesRange &other) |
~CodesRange () | |
std::string::size_type | size () const |
bool | isValid () const |
void | selfDisplay (std::ostream &out) const |
ConstIterator | begin () const |
ConstIterator | end () const |
ConstReverseIterator | rbegin () const |
ConstReverseIterator | rend () const |
ConstCirculator | c () const |
ConstReverseCirculator | rc () const |
Private Attributes | |
std::string | myChain |
Friends | |
std::ostream & | operator<< (std::ostream &out, const CodesRange &object) |
Aim: model of CRange that provides services to (circularly)iterate over the letters of the freeman chain.
Definition at line 395 of file FreemanChain.h.
typedef Circulator<ConstIterator> DGtal::FreemanChain< TInteger >::CodesRange::ConstCirculator |
Definition at line 403 of file FreemanChain.h.
typedef std::string::const_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstIterator |
Definition at line 401 of file FreemanChain.h.
typedef boost::reverse_iterator<ConstCirculator> DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseCirculator |
Definition at line 404 of file FreemanChain.h.
typedef std::string::const_reverse_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseIterator |
Definition at line 402 of file FreemanChain.h.
|
inline |
Default Constructor.
Definition at line 411 of file FreemanChain.h.
Referenced by CodesRange(), operator<<, and operator=().
|
inline |
Constructor.
Definition at line 416 of file FreemanChain.h.
References myChain.
|
inline |
Copy constructor.
aOther | the iterator to clone. |
Definition at line 422 of file FreemanChain.h.
References CodesRange(), and myChain.
|
inline |
|
inline |
Iterator service.
Definition at line 496 of file FreemanChain.h.
References myChain.
Referenced by c(), and selfDisplay().
|
inline |
Circulator service.
Definition at line 528 of file FreemanChain.h.
References begin(), and end().
Referenced by rc().
|
inline |
Iterator service.
Definition at line 504 of file FreemanChain.h.
References myChain.
Referenced by c(), and selfDisplay().
|
inline |
Checks the validity/consistency of the object.
Definition at line 456 of file FreemanChain.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 430 of file FreemanChain.h.
References CodesRange(), and myChain.
|
inline |
Iterator service.
Definition at line 512 of file FreemanChain.h.
References myChain.
|
inline |
Circulator service.
Definition at line 536 of file FreemanChain.h.
References c().
|
inline |
Iterator service.
Definition at line 520 of file FreemanChain.h.
References myChain.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 463 of file FreemanChain.h.
|
inline |
|
friend |
Overloads 'operator<<' for displaying objects of class 'CodesRange'.
out | the output stream where the object is written. |
object | the object of class 'CodesRange' to write. |
Definition at line 478 of file FreemanChain.h.
References CodesRange().
|
private |
Private member myChain is a string of letters
Definition at line 488 of file FreemanChain.h.
Referenced by begin(), CodesRange(), CodesRange(), end(), operator=(), rbegin(), rend(), and size().