Base Framework
|
Iterator of interleaved elements within a sequence. More...
#include <base/iterator/InterleavedIterator.h>
Inherits Iterator< TRAITS >.
Inherited by MatrixRowIterator< TRAITS >.
Public Types | |
typedef Iterator< TRAITS >::Value | Value |
typedef Iterator< TRAITS >::Reference | Reference |
typedef Iterator< TRAITS >::Pointer | Pointer |
typedef Iterator< TRAITS >::Distance | Distance |
typedef Iterator< TRAITS >::Category | Category |
![]() | |
typedef TRAITS::Value | Value |
typedef TRAITS::Distance | Distance |
typedef TRAITS::Reference | Reference |
typedef TRAITS::Pointer | Pointer |
typedef TRAITS::Category | Category |
Public Member Functions | |
InterleavedIterator (Pointer element, MemoryDiff step) | |
InterleavedIterator & | operator++ () |
InterleavedIterator | operator++ (int) |
InterleavedIterator & | operator-- () |
InterleavedIterator | operator-- (int) |
InterleavedIterator & | operator+= (Distance distance) |
InterleavedIterator & | operator-= (Distance distance) |
bool | operator!= (const InterleavedIterator &compare) const |
bool | operator< (const InterleavedIterator &compare) const |
Reference | operator* () const |
Pointer | operator-> () const |
Pointer | getValue () const |
Reference | operator[] (MemoryDiff index) const |
Protected Attributes | |
Pointer | element |
MemoryDiff | step = 0 |
Iterator of interleaved elements within a sequence.
Iterator used to traverse interleaved elements within a sequence.
|
inline |
Initializes iterator.
element | The initial value of the iterator. |
step | The number of elements to skip over per element. |
|
inline |
Returns the pointer value of the iterator.
|
inline |
Returns true if the iterators are equal.
|
inline |
Access the element.
|
inline |
Prefix increment.
|
inline |
Postfix decrement.
|
inline |
Move the specified distance forward.
|
inline |
Prefix decrement.
|
inline |
Postfix decrement.
|
inline |
Move the specified distance backwards.
|
inline |
Access the element.
|
inline |
Returns true if this iterator is less than the specified iterator.
|
inline |
Returns the element at the specified index from this element.
|
protected |
The position of the iterator.
|
protected |
The fixed distance between "consecutive" elements.