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

Public Types | |
| typedef ConstIterator | Self |
| typedef TValue | 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 | |
| ~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 |
| unsigned int | myNbValues |
| const Value * | myValues |
| const 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 452 of file IndexedListWithBlocks.h.
| typedef DifferenceType DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::difference_type |
Definition at line 463 of file IndexedListWithBlocks.h.
| typedef std::ptrdiff_t DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::DifferenceType |
Definition at line 458 of file IndexedListWithBlocks.h.
| typedef std::forward_iterator_tag DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::iterator_category |
Definition at line 467 of file IndexedListWithBlocks.h.
| typedef const Value* DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Pointer |
Definition at line 456 of file IndexedListWithBlocks.h.
| typedef Pointer DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::pointer |
Definition at line 464 of file IndexedListWithBlocks.h.
| typedef const Value& DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Reference |
Definition at line 457 of file IndexedListWithBlocks.h.
| typedef Reference DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::reference |
Definition at line 465 of file IndexedListWithBlocks.h.
| typedef ConstIterator DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Self |
Definition at line 454 of file IndexedListWithBlocks.h.
| typedef std::size_t DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::size_type |
Definition at line 462 of file IndexedListWithBlocks.h.
| typedef TValue DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::Value |
Definition at line 455 of file IndexedListWithBlocks.h.
| typedef Value DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::value_type |
Definition at line 461 of file IndexedListWithBlocks.h.
|
protected |
Constructor from first block and index. Used by class IndexedListWithBlocks.
Definition at line 249 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 >::ConstIterator::~ConstIterator | ( | ) |
| DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::ConstIterator | ( | ) |
Default constructor.
Definition at line 236 of file IndexedListWithBlocks.ih.
| DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::ConstIterator | ( | const ConstIterator & | other | ) |
Copy constructor.
| other | the object to clone. |
Definition at line 242 of file IndexedListWithBlocks.ih.
|
inline |
Inequality operator.
| other | any other iterator. |
Definition at line 372 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myIdx, and DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myValues.
|
inline |
Dereference operator.
Definition at line 323 of file IndexedListWithBlocks.ih.
|
inline |
Pre-increment operator.
Definition at line 343 of file IndexedListWithBlocks.ih.
|
inline |
Post-increment operator.
Definition at line 352 of file IndexedListWithBlocks.ih.
|
inline |
Addition operator. Moves the iterator at position + n.
| n | any positive integer |
Definition at line 381 of file IndexedListWithBlocks.ih.
|
inline |
Pointer dereference operator.
Definition at line 333 of file IndexedListWithBlocks.ih.
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 307 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myIdx, DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myNbValues, DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myNext, and DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myValues.
|
inline |
Equality operator.
| other | any other iterator. |
Definition at line 363 of file IndexedListWithBlocks.ih.
References DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myIdx, and DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::myValues.
|
inline |
Positive offset dereference operator. Moves the iterator at position + n.
| n | any positive integer |
Definition at line 404 of file IndexedListWithBlocks.ih.
|
friend |
Definition at line 476 of file IndexedListWithBlocks.h.
|
protected |
|
protected |
Definition at line 472 of file IndexedListWithBlocks.h.
Referenced by DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator=().
|
protected |
Definition at line 474 of file IndexedListWithBlocks.h.
Referenced by DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator=().
|
protected |
Definition at line 473 of file IndexedListWithBlocks.h.
Referenced by DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator!=(), DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator=(), DGtal::IndexedListWithBlocks< TValue, N, M >::ConstIterator::operator==(), and DGtal::IndexedListWithBlocks< TValue, N, M >::selfDisplay().
1.8.1.1