DGtal
0.6.devel
|
#include <LabelledMap.h>
Public Types | |
typedef ConstIterator | Self |
typedef const Value * | Pointer |
typedef 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 | |
~ConstIterator () | |
ConstIterator () | |
ConstIterator (const ConstIterator &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 |
Data & | _data () const |
const Data & | _const_data () const |
Protected Member Functions | |
ConstIterator (LabelsConstIterator lIt, BlockConstIterator bIt) |
Private Attributes | |
LabelsConstIterator | myLabelsIt |
BlockConstIterator | myBlockIt |
Friends | |
class | LabelledMap |
This class allows to visit all stored pairs (key,value).
Definition at line 629 of file LabelledMap.h.
typedef DifferenceType DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::difference_type |
Definition at line 643 of file LabelledMap.h.
typedef std::ptrdiff_t DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::DifferenceType |
Definition at line 638 of file LabelledMap.h.
typedef std::forward_iterator_tag DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::iterator_category |
Definition at line 647 of file LabelledMap.h.
typedef const Value* DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::Pointer |
Definition at line 635 of file LabelledMap.h.
typedef Pointer DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::pointer |
Definition at line 644 of file LabelledMap.h.
typedef Value DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::Reference |
Note the trick here. The reference is a rvalue. Works only for const iterator.
Definition at line 637 of file LabelledMap.h.
typedef Reference DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::reference |
Definition at line 645 of file LabelledMap.h.
typedef ConstIterator DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::Self |
Definition at line 632 of file LabelledMap.h.
typedef std::size_t DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::size_type |
Definition at line 642 of file LabelledMap.h.
typedef Value DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::value_type |
Definition at line 641 of file LabelledMap.h.
|
inlineprotected |
Constructor. Internal. Used by LabelledMap.
Definition at line 417 of file LabelledMap.ih.
|
inline |
|
inline |
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 436 of file LabelledMap.ih.
|
inline |
Definition at line 528 of file LabelledMap.ih.
|
inline |
Definition at line 519 of file LabelledMap.ih.
|
inline |
Inequality operator.
other | any other iterator. |
Definition at line 510 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::myLabelsIt.
|
inline |
Dereference operator.
Definition at line 458 of file LabelledMap.ih.
|
inline |
Pre-increment operator.
Definition at line 479 of file LabelledMap.ih.
|
inline |
Post-increment operator.
Definition at line 490 of file LabelledMap.ih.
|
inline |
Pointer dereference operator. Warning: Not thread-safe !! Use operator* instead.
Definition at line 467 of file LabelledMap.ih.
References operator*().
|
inline |
Assignment.
other | the object to copy. |
Definition at line 444 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::myBlockIt, and DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::myLabelsIt.
|
inline |
Equality operator.
other | any other iterator. |
Definition at line 501 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::myLabelsIt.
|
friend |
Definition at line 631 of file LabelledMap.h.
|
private |
ConstIterator to visit datas.
Definition at line 653 of file LabelledMap.h.
Referenced by DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator=().
|
private |
ConstIterator to visit keys.
Definition at line 651 of file LabelledMap.h.
Referenced by DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator!=(), DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator=(), and DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator==().