DGtal
1.5.beta
|
#include <DGtal/base/LabelledMap.h>
Public Types | |
typedef BlockIterator | Self |
typedef TData | Value |
typedef Value * | Pointer |
typedef Value & | Reference |
typedef std::ptrdiff_t | DifferenceType |
only positive offsets allowed. More... | |
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 | |
~BlockIterator () | |
BlockIterator () | |
BlockIterator (const BlockIterator &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 | |
BlockIterator (__FirstBlock &block, unsigned int idx, unsigned int size) | |
Protected Attributes | |
unsigned int | myIdx |
current index in myDatas of the iterator More... | |
unsigned int | myNbDatas |
number of valid datas in array myDatas More... | |
Data * | myDatas |
array of myNbDatas datas. More... | |
__AnyBlock * | myNext |
pointer to next block or 0 if last block. More... | |
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 394 of file LabelledMap.h.
typedef DifferenceType DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::difference_type |
Definition at line 405 of file LabelledMap.h.
typedef std::ptrdiff_t DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::DifferenceType |
only positive offsets allowed.
Definition at line 400 of file LabelledMap.h.
typedef std::forward_iterator_tag DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::iterator_category |
Definition at line 409 of file LabelledMap.h.
typedef Value* DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::Pointer |
Definition at line 398 of file LabelledMap.h.
typedef Pointer DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::pointer |
Definition at line 406 of file LabelledMap.h.
typedef Value& DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::Reference |
Definition at line 399 of file LabelledMap.h.
typedef Reference DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::reference |
Definition at line 407 of file LabelledMap.h.
typedef BlockIterator DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::Self |
Definition at line 396 of file LabelledMap.h.
typedef std::size_t DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::size_type |
Definition at line 404 of file LabelledMap.h.
typedef TData DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::Value |
Definition at line 397 of file LabelledMap.h.
typedef Value DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::value_type |
Definition at line 403 of file LabelledMap.h.
|
protected |
Constructor from first block and index. Used by class LabelledMap.
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::~BlockIterator | ( | ) |
Default destructor.
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::BlockIterator | ( | ) |
Default constructor.
DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::BlockIterator | ( | const BlockIterator & | other | ) |
Copy constructor.
other | the object to clone. |
bool DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator!= | ( | const Self & | other | ) | const |
Inequality operator.
other | any other iterator. |
Reference DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator* | ( | ) | const |
Dereference operator.
Self& DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator++ | ( | ) |
Pre-increment operator.
Self DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator++ | ( | int | ) |
Post-increment operator.
Self& DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator+= | ( | DifferenceType | n | ) |
Addition operator. Moves the iterator at position + n.
n | any positive integer |
Pointer DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator-> | ( | ) | const |
Pointer dereference operator.
Self& DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator= | ( | const Self & | other | ) |
Assignment.
other | the object to copy. |
bool DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator== | ( | const Self & | other | ) | const |
Equality operator.
other | any other iterator. |
Reference DGtal::LabelledMap< TData, L, TWord, N, M >::BlockIterator::operator[] | ( | DifferenceType | n | ) | const |
Positive offset dereference operator. Moves the iterator at position + n.
n | any positive integer |
|
friend |
Definition at line 418 of file LabelledMap.h.
|
protected |
array of myNbDatas datas.
Definition at line 415 of file LabelledMap.h.
|
protected |
current index in myDatas of the iterator
Definition at line 413 of file LabelledMap.h.
|
protected |
number of valid datas in array myDatas
Definition at line 414 of file LabelledMap.h.
|
protected |
pointer to next block or 0 if last block.
Definition at line 416 of file LabelledMap.h.