|
DGtal 2.0.0
|
#include <DGtal/base/IndexedListWithBlocks.h>
Public Types | |
| typedef ConstIterator | Self |
| typedef TValue | Value |
| typedef const Value * | Pointer |
| typedef const 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 | |
| ~ConstIterator () | |
| ConstIterator () | |
| ConstIterator (const ConstIterator &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 | |
| ConstIterator (const 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 | |
| const Value * | myValues |
| array of myNbValues values. | |
| const 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 451 of file IndexedListWithBlocks.h.
| typedef DifferenceType DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::difference_type |
Definition at line 462 of file IndexedListWithBlocks.h.
| typedef std::ptrdiff_t DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::DifferenceType |
only positive offsets allowed.
Definition at line 457 of file IndexedListWithBlocks.h.
| typedef std::forward_iterator_tag DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::iterator_category |
Definition at line 466 of file IndexedListWithBlocks.h.
| typedef const Value* DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Pointer |
Definition at line 455 of file IndexedListWithBlocks.h.
| typedef Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::pointer |
Definition at line 463 of file IndexedListWithBlocks.h.
| typedef const Value& DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Reference |
Definition at line 456 of file IndexedListWithBlocks.h.
| typedef Reference DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::reference |
Definition at line 464 of file IndexedListWithBlocks.h.
| typedef ConstIterator DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Self |
Definition at line 453 of file IndexedListWithBlocks.h.
| typedef std::size_t DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::size_type |
Definition at line 461 of file IndexedListWithBlocks.h.
| typedef TValue DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Value |
Definition at line 454 of file IndexedListWithBlocks.h.
| typedef Value DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::value_type |
Definition at line 460 of file IndexedListWithBlocks.h.
|
protected |
Constructor from first block and index. Used by class IndexedListWithBlocks.
Referenced by ConstIterator().
| DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::~ConstIterator | ( | ) |
Default destructor.
| DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::ConstIterator | ( | ) |
Default constructor.
| DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::ConstIterator | ( | const ConstIterator & | other | ) |
| bool DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator!= | ( | const Self & | other | ) | const |
Inequality operator.
| other | any other iterator. |
| Reference DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator* | ( | ) | const |
Dereference operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator++ | ( | ) |
Pre-increment operator.
| Self DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator++ | ( | int | ) |
Post-increment operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator+= | ( | DifferenceType | n | ) |
Addition operator. Moves the iterator at position + n.
| n | any positive integer |
| Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator-> | ( | ) | const |
Pointer dereference operator.
| Self & DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator= | ( | const Self & | other | ) |
Assignment.
| other | the object to copy. |
| bool DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator== | ( | const Self & | other | ) | const |
Equality operator.
| other | any other iterator. |
| Reference DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator[] | ( | DifferenceType | n | ) | const |
Positive offset dereference operator. Moves the iterator at position + n.
| n | any positive integer |
|
friend |
Definition at line 475 of file IndexedListWithBlocks.h.
References IndexedListWithBlocks.
Referenced by IndexedListWithBlocks.
|
protected |
current index in myValues of the iterator
Definition at line 470 of file IndexedListWithBlocks.h.
|
protected |
number of valid values in array myValues
Definition at line 471 of file IndexedListWithBlocks.h.
|
protected |
pointer to next block or 0 if last block.
Definition at line 473 of file IndexedListWithBlocks.h.
|
protected |
array of myNbValues values.
Definition at line 472 of file IndexedListWithBlocks.h.