DGtal 1.3.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 | |
const 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 387 of file FreemanChain.h.
typedef Circulator<ConstIterator> DGtal::FreemanChain< TInteger >::CodesRange::ConstCirculator |
Definition at line 395 of file FreemanChain.h.
typedef std::string::const_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstIterator |
Definition at line 393 of file FreemanChain.h.
typedef std::reverse_iterator<ConstCirculator> DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseCirculator |
Definition at line 396 of file FreemanChain.h.
typedef std::string::const_reverse_iterator DGtal::FreemanChain< TInteger >::CodesRange::ConstReverseIterator |
Definition at line 394 of file FreemanChain.h.
|
inline |
|
inline |
|
inline |
Copy constructor.
aOther | the iterator to clone. |
Definition at line 414 of file FreemanChain.h.
|
inline |
|
inline |
Iterator service.
Definition at line 488 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 520 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 496 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 448 of file FreemanChain.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 422 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
inline |
Iterator service.
Definition at line 504 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::myChain.
|
inline |
Circulator service.
Definition at line 528 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::c().
|
inline |
Iterator service.
Definition at line 512 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 455 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::CodesRange::begin(), and DGtal::FreemanChain< TInteger >::CodesRange::end().
|
inline |
Definition at line 439 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 470 of file FreemanChain.h.
|
private |
Private member myChain is a string of letters
Definition at line 480 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().