DGtal
1.5.beta
|
#include <DGtal/base/LabelledMap.h>
Public Types | |
typedef ConstIterator | Self |
typedef const Value * | Pointer |
typedef Value | Reference |
Note the trick here. The reference is a rvalue. Works only for const iterator. More... | |
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 |
ConstIterator to visit keys. More... | |
BlockConstIterator | myBlockIt |
ConstIterator to visit datas. More... | |
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.
|
protected |
Constructor. Internal. Used by LabelledMap.
DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::~ConstIterator | ( | ) |
Default destructor.
DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::ConstIterator | ( | ) |
Default constructor.
DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::ConstIterator | ( | const ConstIterator & | other | ) |
Copy constructor.
other | the object to clone. |
const Data& DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::_const_data | ( | ) | const |
Data& DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::_data | ( | ) | const |
bool DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator!= | ( | const Self & | other | ) | const |
Inequality operator.
other | any other iterator. |
Reference DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator* | ( | ) | const |
Dereference operator.
Self& DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator++ | ( | ) |
Pre-increment operator.
Self DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator++ | ( | int | ) |
Post-increment operator.
Pointer DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator-> | ( | ) | const |
Pointer dereference operator. Warning: Not thread-safe !! Use operator* instead.
Self& DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator= | ( | const Self & | other | ) |
Assignment.
other | the object to copy. |
bool DGtal::LabelledMap< TData, L, TWord, N, M >::ConstIterator::operator== | ( | const Self & | other | ) | const |
Equality operator.
other | any other iterator. |
|
friend |
Definition at line 631 of file LabelledMap.h.
|
private |
ConstIterator to visit datas.
Definition at line 653 of file LabelledMap.h.
|
private |
ConstIterator to visit keys.
Definition at line 651 of file LabelledMap.h.