TDME2 1.9.121
|
Vector iterator template to be used to iterate multiple vectors at a single invocation. More...
#include <tdme/utilities/VectorIteratorMultiple.h>
Public Member Functions | |
VectorIteratorMultiple () | |
Public constructor. More... | |
VectorIteratorMultiple (vector< vector< T > * > &vectorList) | |
Public constructor. More... | |
void | clear () |
Clears list of array lists to iterate. More... | |
void | addVector (vector< T > *vector) |
Adds vector to iterator. More... | |
VectorIteratorMultiple< T > * | reset () |
Resets vector iterator for iterating. More... | |
bool | hasNext () |
Determines if next element is available. More... | |
T | next () |
Retrieves next element, hasNext must have been called before. More... | |
VectorIteratorMultiple * | iterator () |
VectorIteratorMultiple< T > * | clone () |
Clones this iterator. More... | |
Private Attributes | |
int32_t | vectorIdx { 0 } |
int32_t | elementIdx { 0 } |
vector< vector< T > * > | vectorList |
Vector iterator template to be used to iterate multiple vectors at a single invocation.
Definition at line 21 of file VectorIteratorMultiple.h.
|
inline |
Public constructor.
Definition at line 32 of file VectorIteratorMultiple.h.
|
inline |
Public constructor.
vectorList | vector list |
Definition at line 40 of file VectorIteratorMultiple.h.
|
inline |
Adds vector to iterator.
vector | vector |
Definition at line 56 of file VectorIteratorMultiple.h.
|
inline |
Clears list of array lists to iterate.
Definition at line 48 of file VectorIteratorMultiple.h.
|
inline |
Clones this iterator.
Definition at line 106 of file VectorIteratorMultiple.h.
|
inline |
Determines if next element is available.
Definition at line 75 of file VectorIteratorMultiple.h.
|
inline |
Definition at line 98 of file VectorIteratorMultiple.h.
|
inline |
Retrieves next element, hasNext must have been called before.
Definition at line 91 of file VectorIteratorMultiple.h.
|
inline |
Resets vector iterator for iterating.
Definition at line 65 of file VectorIteratorMultiple.h.
|
private |
Definition at line 25 of file VectorIteratorMultiple.h.
|
private |
Definition at line 24 of file VectorIteratorMultiple.h.
|
private |
Definition at line 26 of file VectorIteratorMultiple.h.