DGtal 1.4.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 std::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 393 of file FreemanChain.h.
typedef Circulator<ConstIterator> DGtal::FreemanChain< TInteger >::CodesRange::ConstCirculator |
Definition at line 401 of file FreemanChain.h.
typedef std::string::const_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstIterator |
Definition at line 399 of file FreemanChain.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseCirculator |
Definition at line 402 of file FreemanChain.h.
typedef std::string::const_reverse_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseIterator |
Definition at line 400 of file FreemanChain.h.
|
inline |
|
inline |
|
inline |
Copy constructor.
aOther | the iterator to clone. |
Definition at line 420 of file FreemanChain.h.
|
inline |
|
inline |
Iterator service.
Definition at line 494 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
Referenced by DGtal::FreemanChain< TInteger >::CodesRange::c(), and DGtal::FreemanChain< TInteger >::CodesRange::selfDisplay().
|
inline |
Circulator service.
Definition at line 526 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::begin(), and DGtal::FreemanChain< TInteger >::CodesRange::end().
Referenced by DGtal::FreemanChain< TInteger >::CodesRange::rc().
|
inline |
Iterator service.
Definition at line 502 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
Referenced by DGtal::FreemanChain< TInteger >::CodesRange::c(), and DGtal::FreemanChain< TInteger >::CodesRange::selfDisplay().
|
inline |
Checks the validity/consistency of the object.
Definition at line 454 of file FreemanChain.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 428 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
inline |
Iterator service.
Definition at line 510 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
inline |
Circulator service.
Definition at line 534 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::c().
|
inline |
Iterator service.
Definition at line 518 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 461 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::begin(), and DGtal::FreemanChain< TInteger >::CodesRange::end().
|
inline |
Definition at line 445 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
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 476 of file FreemanChain.h.
|
private |
Private member myChain is a string of letters
Definition at line 486 of file FreemanChain.h.
Referenced by DGtal::FreemanChain< TInteger >::CodesRange::begin(), DGtal::FreemanChain< TInteger >::CodesRange::end(), DGtal::FreemanChain< TInteger >::CodesRange::operator=(), DGtal::FreemanChain< TInteger >::CodesRange::rbegin(), DGtal::FreemanChain< TInteger >::CodesRange::rend(), and DGtal::FreemanChain< TInteger >::CodesRange::size().