|
DGtal
0.6.devel
|
#include <IndexedListWithBlocks.h>

Public Types | |
| typedef Iterator | Self |
| typedef TValue | Value |
| typedef 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 | |
| ~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 |
| unsigned int | myNbValues |
| Value * | myValues |
| AnyBlock * | myNext |
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 335 of file IndexedListWithBlocks.h.
| typedef DifferenceType DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::difference_type |
Definition at line 346 of file IndexedListWithBlocks.h.
| typedef std::ptrdiff_t DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::DifferenceType |
Definition at line 341 of file IndexedListWithBlocks.h.
| typedef std::forward_iterator_tag DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::iterator_category |
Definition at line 350 of file IndexedListWithBlocks.h.
| typedef Value* DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Pointer |
Definition at line 339 of file IndexedListWithBlocks.h.
| typedef Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::pointer |
Definition at line 347 of file IndexedListWithBlocks.h.
| typedef Value& DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Reference |
Definition at line 340 of file IndexedListWithBlocks.h.
| typedef Reference DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::reference |
Definition at line 348 of file IndexedListWithBlocks.h.
| typedef Iterator DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Self |
Definition at line 337 of file IndexedListWithBlocks.h.
| typedef std::size_t DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::size_type |
Definition at line 345 of file IndexedListWithBlocks.h.
| typedef TValue DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Value |
Definition at line 338 of file IndexedListWithBlocks.h.
| typedef Value DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::value_type |
Definition at line 344 of file IndexedListWithBlocks.h.
|
protected |
Constructor from first block and index. Used by class IndexedListWithBlocks.
Definition at line 64 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::FirstBlock::data, DGtal::IndexedListWithBlocks< TValue, N, M >::ValueOrBlockPointer::nextBlock, DGtal::IndexedListWithBlocks< TValue, N, M >::FirstBlock::size, and DGtal::IndexedListWithBlocks< TValue, N, M >::FirstBlock::values.
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::~Iterator | ( | ) |
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Iterator | ( | ) |
Default constructor.
Definition at line 51 of file IndexedListWithBlocks.ih.
| DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::Iterator | ( | const Iterator & | other | ) |
Copy constructor.
| other | the object to clone. |
Definition at line 57 of file IndexedListWithBlocks.ih.
|
inline |
Inequality operator.
| other | any other iterator. |
Definition at line 187 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myIdx, and DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myValues.
|
inline |
Dereference operator.
Definition at line 138 of file IndexedListWithBlocks.ih.
|
inline |
Pre-increment operator.
Definition at line 158 of file IndexedListWithBlocks.ih.
|
inline |
Post-increment operator.
Definition at line 167 of file IndexedListWithBlocks.ih.
|
inline |
Addition operator. Moves the iterator at position + n.
| n | any positive integer |
Definition at line 196 of file IndexedListWithBlocks.ih.
|
inline |
Pointer dereference operator.
Definition at line 148 of file IndexedListWithBlocks.ih.
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 122 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myIdx, DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myNbValues, DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myNext, and DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myValues.
|
inline |
Equality operator.
| other | any other iterator. |
Definition at line 178 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myIdx, and DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::myValues.
|
inline |
Positive offset dereference operator. Moves the iterator at position + n.
| n | any positive integer |
Definition at line 219 of file IndexedListWithBlocks.ih.
|
friend |
Definition at line 359 of file IndexedListWithBlocks.h.
|
protected |
|
protected |
Definition at line 355 of file IndexedListWithBlocks.h.
Referenced by DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator=().
|
protected |
Definition at line 357 of file IndexedListWithBlocks.h.
Referenced by DGtal::IndexedListWithBlocks< TValue, N, M >::Iterator::operator=().
|
protected |
1.8.1.1