|
DGtal 1.4.2
|
#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.
| DifferenceType DGtal::Labels< L, TWord >::ConstEnumerator::difference_type |
| std::ptrdiff_t DGtal::Labels< L, TWord >::ConstEnumerator::DifferenceType |
| std::forward_iterator_tag DGtal::Labels< L, TWord >::ConstEnumerator::iterator_category |
| const Value* DGtal::Labels< L, TWord >::ConstEnumerator::Pointer |
| Pointer DGtal::Labels< L, TWord >::ConstEnumerator::pointer |
| const Value& DGtal::Labels< L, TWord >::ConstEnumerator::Reference |
| Reference DGtal::Labels< L, TWord >::ConstEnumerator::reference |
| ConstEnumerator DGtal::Labels< L, TWord >::ConstEnumerator::Self |
| std::size_t DGtal::Labels< L, TWord >::ConstEnumerator::size_type |
| Label DGtal::Labels< L, TWord >::ConstEnumerator::Value |
| 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 |