Vector iterator.
Vector iterator over a predefined sequence
Definition at line 200 of file vector_map_iterator.hpp.
#include <vector_map_iterator.hpp>
Public Member Functions | |
vector_key_iterator_seq (openfpm::vector< lid > &dp) | |
Constructor require the sequence. | |
vector_key_iterator_seq< lid > & | operator++ () |
Get the next element. | |
void | set (int d, size_t sz) |
Set the dimension. | |
bool | isNext () const |
Check if there is the next element. | |
size_t | get () const |
Get the actual key. | |
Protected Attributes | |
size_t | gk |
Actual key. | |
Private Attributes | |
openfpm::vector< lid > & | dp |
|
inline |
Constructor require the sequence.
dp |
Definition at line 216 of file vector_map_iterator.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 277 of file vector_map_iterator.hpp.
|
inline |
Check if there is the next element.
Check if there is the next element
we did not reach the end of the grid
we reach the end of the grid
Definition at line 257 of file vector_map_iterator.hpp.
|
inline |
Get the next element.
Get the next element
increment the first index
Definition at line 228 of file vector_map_iterator.hpp.
|
inline |
Set the dimension.
d | is the dimension (IGNORED is by default 0) |
sz | set the counter to sz |
Definition at line 243 of file vector_map_iterator.hpp.
|
private |
Definition at line 202 of file vector_map_iterator.hpp.
|
protected |
Actual key.
Definition at line 207 of file vector_map_iterator.hpp.