|
DGtal 1.4.2
|
#include <DGtal/base/IndexedListWithBlocks.h>
Public Types | |
| typedef Iterator | Self |
| typedef TValue | Value |
| typedef Value * | Pointer |
| typedef Value & | Reference |
| typedef std::ptrdiff_t | DifferenceType |
| only positive offsets allowed. | |
| 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 | |
| ~Iterator () | |
| Iterator () | |
| Iterator (const Iterator &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 | |
| Iterator (FirstBlock &block, unsigned int idx) | |
Protected Attributes | |
| unsigned int | myIdx |
| current index in myValues of the iterator | |
| unsigned int | myNbValues |
| number of valid values in array myValues | |
| Value * | myValues |
| array of myNbValues values. | |
| AnyBlock * | myNext |
| pointer to next block or 0 if last block. | |
Friends | |
| class | IndexedListWithBlocks |
Pseudo-random iterator to visit IndexedListWithBlocks (it is only a random forward iterator). Model of boost::ForwardIterator. Provides also + and += arithmetic.
Definition at line 334 of file IndexedListWithBlocks.h.
| DifferenceType DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::difference_type |
Definition at line 345 of file IndexedListWithBlocks.h.
| std::ptrdiff_t DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::DifferenceType |
only positive offsets allowed.
Definition at line 340 of file IndexedListWithBlocks.h.
| std::forward_iterator_tag DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::iterator_category |
Definition at line 349 of file IndexedListWithBlocks.h.
| Value* DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Pointer |
Definition at line 338 of file IndexedListWithBlocks.h.
| Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::pointer |
Definition at line 346 of file IndexedListWithBlocks.h.
| Value& DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Reference |
Definition at line 339 of file IndexedListWithBlocks.h.
| Reference DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::reference |
Definition at line 347 of file IndexedListWithBlocks.h.
| Iterator DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Self |
Definition at line 336 of file IndexedListWithBlocks.h.
| std::size_t DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::size_type |
Definition at line 344 of file IndexedListWithBlocks.h.
| TValue DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Value |
Definition at line 337 of file IndexedListWithBlocks.h.
| Value DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::value_type |
Definition at line 343 of file IndexedListWithBlocks.h.
|
protected |
Constructor from first block and index. Used by class IndexedListWithBlocks.
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::~Iterator | ( | ) |
Default destructor.
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Iterator | ( | ) |
Default constructor.
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Iterator | ( | const Iterator & | other | ) |
Copy constructor.
| other | the object to clone. |
| bool DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator!= | ( | const Self & | other | ) | const |
Inequality operator.
| other | any other iterator. |
| Reference DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator* | ( | ) | const |
Dereference operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator++ | ( | ) |
Pre-increment operator.
| Self DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator++ | ( | int | ) |
Post-increment operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator+= | ( | DifferenceType | n | ) |
Addition operator. Moves the iterator at position + n.
| n | any positive integer |
| Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator-> | ( | ) | const |
Pointer dereference operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator= | ( | const Self & | other | ) |
Assignment.
| other | the object to copy. |
| bool DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator== | ( | const Self & | other | ) | const |
Equality operator.
| other | any other iterator. |
| Reference DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator[] | ( | DifferenceType | n | ) | const |
Positive offset dereference operator. Moves the iterator at position + n.
| n | any positive integer |
|
friend |
Definition at line 358 of file IndexedListWithBlocks.h.
|
protected |
current index in myValues of the iterator
Definition at line 353 of file IndexedListWithBlocks.h.
|
protected |
number of valid values in array myValues
Definition at line 354 of file IndexedListWithBlocks.h.
|
protected |
pointer to next block or 0 if last block.
Definition at line 356 of file IndexedListWithBlocks.h.
|
protected |
array of myNbValues values.
Definition at line 355 of file IndexedListWithBlocks.h.