DGtal 1.4.0
|
#include <DGtal/base/Labels.h>
Public Types | |
typedef ConstEnumerator | Self |
typedef Label | Value |
typedef const Value * | Pointer |
typedef const Value & | Reference |
typedef std::ptrdiff_t | DifferenceType |
only positive offsets allowed. | |
typedef Value | value_type |
typedef std::size_t | size_type |
typedef DifferenceType | difference_type |
typedef Pointer | pointer |
typedef Reference | reference |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
~ConstEnumerator () | |
ConstEnumerator () | |
ConstEnumerator (const Word *address, SizeType firstWord) | |
ConstEnumerator (const ConstEnumerator &other) | |
Self & | operator= (const Self &other) |
Reference | operator* () const |
Pointer | operator-> () const |
Self & | operator++ () |
Self | operator++ (int) |
bool | operator== (const Self &other) const |
bool | operator!= (const Self &other) const |
Private Attributes | |
const Word * | myWordAddress |
current address of word | |
Label | myWordLabel |
index of first label of the current word. | |
Label | myLabel |
current label | |
Word | myWord |
current word (modified until 0). | |
This class is used to enumerate the set values in the Labels container. A model of boost::ForwardIterator.
typedef DifferenceType DGtal::Labels< L, TWord >::ConstEnumerator::difference_type |
typedef std::ptrdiff_t DGtal::Labels< L, TWord >::ConstEnumerator::DifferenceType |
typedef std::forward_iterator_tag DGtal::Labels< L, TWord >::ConstEnumerator::iterator_category |
typedef const Value* DGtal::Labels< L, TWord >::ConstEnumerator::Pointer |
typedef Pointer DGtal::Labels< L, TWord >::ConstEnumerator::pointer |
typedef const Value& DGtal::Labels< L, TWord >::ConstEnumerator::Reference |
typedef Reference DGtal::Labels< L, TWord >::ConstEnumerator::reference |
typedef ConstEnumerator DGtal::Labels< L, TWord >::ConstEnumerator::Self |
typedef std::size_t DGtal::Labels< L, TWord >::ConstEnumerator::size_type |
typedef Label DGtal::Labels< L, TWord >::ConstEnumerator::Value |
typedef Value DGtal::Labels< L, TWord >::ConstEnumerator::value_type |
DGtal::Labels< L, TWord >::ConstEnumerator::~ConstEnumerator | ( | ) |
Default destructor.
DGtal::Labels< L, TWord >::ConstEnumerator::ConstEnumerator | ( | ) |
Default constructor (Invalid).
DGtal::Labels< L, TWord >::ConstEnumerator::ConstEnumerator | ( | const Word * | address, |
SizeType | firstWord ) |
Constructor from word address.
address | is some Labels.myLabels |
firstWord | is 0 (begin) or __DGTAL_LABELS_NBWORDS (end) |
DGtal::Labels< L, TWord >::ConstEnumerator::ConstEnumerator | ( | const ConstEnumerator & | other | ) |
Copy constructor.
other | the object to clone. |
bool DGtal::Labels< L, TWord >::ConstEnumerator::operator!= | ( | const Self & | other | ) | const |
Inequality operator.
other | any other iterator. |
Reference DGtal::Labels< L, TWord >::ConstEnumerator::operator* | ( | ) | const |
Dereference operator.
Self & DGtal::Labels< L, TWord >::ConstEnumerator::operator++ | ( | ) |
Pre-increment operator.
Self DGtal::Labels< L, TWord >::ConstEnumerator::operator++ | ( | int | ) |
Post-increment operator.
Pointer DGtal::Labels< L, TWord >::ConstEnumerator::operator-> | ( | ) | const |
Pointer dereference operator.
Self & DGtal::Labels< L, TWord >::ConstEnumerator::operator= | ( | const Self & | other | ) |
Assignment.
other | the object to copy. |
bool DGtal::Labels< L, TWord >::ConstEnumerator::operator== | ( | const Self & | other | ) | const |
Equality operator.
other | any other iterator. |
|
private |
|
private |
|
private |
|
private |