DGtal
0.6.devel
|
#include <Labels.h>
Public Types | |
typedef ConstEnumerator | Self |
typedef Label | Value |
typedef const Value * | Pointer |
typedef const Value & | Reference |
typedef std::ptrdiff_t | DifferenceType |
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 |
Label | myWordLabel |
Label | myLabel |
Word | myWord |
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 |
|
inline |
|
inline |
Default constructor (Invalid).
Definition at line 55 of file Labels.ih.
|
inline |
Constructor from word address.
address | is some Labels.myLabels |
firstWord | is 0 (begin) or __DGTAL_LABELS_NBWORDS (end) |
Definition at line 62 of file Labels.ih.
References DGtal::Labels< L, TWord >::ConstEnumerator::myLabel, DGtal::Labels< L, TWord >::ConstEnumerator::myWord, DGtal::Labels< L, TWord >::ConstEnumerator::myWordAddress, and DGtal::Labels< L, TWord >::ConstEnumerator::operator++().
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 82 of file Labels.ih.
|
inline |
Inequality operator.
other | any other iterator. |
Definition at line 172 of file Labels.ih.
References DGtal::Labels< L, TWord >::ConstEnumerator::myLabel, and DGtal::Labels< L, TWord >::ConstEnumerator::myWordAddress.
|
inline |
|
inline |
Pre-increment operator.
Definition at line 125 of file Labels.ih.
References DGtal::Bits::firstSetBit(), and DGtal::Bits::leastSignificantBit().
Referenced by DGtal::Labels< L, TWord >::ConstEnumerator::ConstEnumerator().
|
inline |
Post-increment operator.
|
inline |
|
inline |
Assignment.
other | the object to copy. |
Definition at line 91 of file Labels.ih.
References DGtal::Labels< L, TWord >::ConstEnumerator::myLabel, DGtal::Labels< L, TWord >::ConstEnumerator::myWord, DGtal::Labels< L, TWord >::ConstEnumerator::myWordAddress, and DGtal::Labels< L, TWord >::ConstEnumerator::myWordLabel.
|
inline |
Equality operator.
other | any other iterator. |
Definition at line 162 of file Labels.ih.
References DGtal::Labels< L, TWord >::ConstEnumerator::myLabel, and DGtal::Labels< L, TWord >::ConstEnumerator::myWordAddress.
|
private |
|
private |
Definition at line 122 of file Labels.h.
Referenced by DGtal::Labels< L, TWord >::ConstEnumerator::ConstEnumerator(), and DGtal::Labels< L, TWord >::ConstEnumerator::operator=().
|
private |
|
private |
Definition at line 120 of file Labels.h.
Referenced by DGtal::Labels< L, TWord >::ConstEnumerator::operator=().