Vector iterator.
Vector iterator over a predefined sequence
Definition at line 109 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. More... | |
vector_key_iterator_seq< lid > & | operator++ () |
Get the next element. More... | |
void | set (int d, size_t sz) |
Set the dimension. More... | |
bool | isNext () const |
Check if there is the next element. More... | |
size_t | get () const |
Get the actual key. More... | |
Protected Attributes | |
size_t | gk |
Actual key. | |
Private Attributes | |
openfpm::vector< lid > & | dp |
|
inline |
Constructor require the sequence.
dp |
Definition at line 125 of file vector_map_iterator.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 186 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 166 of file vector_map_iterator.hpp.
|
inline |
Get the next element.
Get the next element
increment the first index
Definition at line 137 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 152 of file vector_map_iterator.hpp.