DGtal
0.6.devel
|
#include <LabelledMap.h>
Public Types | |
typedef BlockConstIterator | Self |
typedef TData | 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 | |
~BlockConstIterator () | |
BlockConstIterator () | |
BlockConstIterator (const BlockConstIterator &other) | |
Self & | operator= (const Self &other) |
Reference | operator* () const |
Pointer | operator-> () const |
Self & | operator++ () |
Self | operator++ (int) |
Self & | operator+= (DifferenceType n) |
Reference | operator[] (DifferenceType n) const |
bool | operator== (const Self &other) const |
bool | operator!= (const Self &other) const |
Protected Member Functions | |
BlockConstIterator (const __FirstBlock &block, unsigned int idx, unsigned int size) |
Protected Attributes | |
unsigned int | myIdx |
unsigned int | myNbDatas |
const Data * | myDatas |
const __AnyBlock * | myNext |
Friends | |
class | LabelledMap |
Pseudo-random iterator to visit LabelledMap (it is only a random forward iterator). Model of boost::ForwardIterator. Provides also + and += arithmetic.
Definition at line 511 of file LabelledMap.h.
typedef DifferenceType DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::difference_type |
Definition at line 522 of file LabelledMap.h.
typedef std::ptrdiff_t DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::DifferenceType |
Definition at line 517 of file LabelledMap.h.
typedef std::forward_iterator_tag DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::iterator_category |
Definition at line 526 of file LabelledMap.h.
typedef const Value* DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::Pointer |
Definition at line 515 of file LabelledMap.h.
typedef Pointer DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::pointer |
Definition at line 523 of file LabelledMap.h.
typedef const Value& DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::Reference |
Definition at line 516 of file LabelledMap.h.
typedef Reference DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::reference |
Definition at line 524 of file LabelledMap.h.
typedef BlockConstIterator DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::Self |
Definition at line 513 of file LabelledMap.h.
typedef std::size_t DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::size_type |
Definition at line 521 of file LabelledMap.h.
typedef TData DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::Value |
Definition at line 514 of file LabelledMap.h.
typedef Value DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::value_type |
Definition at line 520 of file LabelledMap.h.
|
protected |
Constructor from first block and index. Used by class LabelledMap.
Definition at line 249 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::__FirstBlock::data, DGtal::LabelledMap< TData, L, TWord, N, M >::__FirstBlock::datas, and DGtal::LabelledMap< TData, L, TWord, N, M >::DataOrBlockPointer::nextBlock.
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::~BlockConstIterator | ( | ) |
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::BlockConstIterator | ( | ) |
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::BlockConstIterator | ( | const BlockConstIterator & | other | ) |
|
inline |
Inequality operator.
other | any other iterator. |
Definition at line 372 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myDatas, and DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myIdx.
|
inline |
Dereference operator.
Definition at line 323 of file LabelledMap.ih.
|
inline |
Pre-increment operator.
Definition at line 343 of file LabelledMap.ih.
|
inline |
Post-increment operator.
Definition at line 352 of file LabelledMap.ih.
|
inline |
Addition operator. Moves the iterator at position + n.
n | any positive integer |
Definition at line 381 of file LabelledMap.ih.
|
inline |
Pointer dereference operator.
Definition at line 333 of file LabelledMap.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 307 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myDatas, DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myIdx, DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myNbDatas, and DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myNext.
|
inline |
Equality operator.
other | any other iterator. |
Definition at line 363 of file LabelledMap.ih.
References DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myDatas, and DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::myIdx.
|
inline |
Positive offset dereference operator. Moves the iterator at position + n.
n | any positive integer |
Definition at line 404 of file LabelledMap.ih.
|
friend |
Definition at line 535 of file LabelledMap.h.
|
protected |
|
protected |
|
protected |
Definition at line 531 of file LabelledMap.h.
Referenced by DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::operator=().
|
protected |
Definition at line 533 of file LabelledMap.h.
Referenced by DGtal::LabelledMap< TData, L, TWord, N, M >::BlockConstIterator::operator=().