Vector iterator. More...
Vector iterator.
Definition at line 44 of file map_vector.hpp.
#include <map_vector.hpp>
Public Member Functions | |
vector_key_iterator (size_t end, size_t start=0) | |
Constructor require the size of the vector. More... | |
vector_key_iterator | operator++ () |
Get the next element. More... | |
void | set (int d, size_t sz) |
Set the dimension. More... | |
bool | isNext () |
Check if there is the next element. More... | |
size_t | get () |
Get the actual key. More... | |
Protected Attributes | |
size_t | gk |
Actual key. | |
Private Attributes | |
size_t | end |
Linearized end element. | |
|
inline |
Constructor require the size of the vector.
end | size of the vector |
Definition at line 60 of file map_vector.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 121 of file map_vector.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 101 of file map_vector.hpp.
|
inline |
Get the next element.
Get the next element
increment the first index
Definition at line 72 of file map_vector.hpp.
|
inline |
Set the dimension.
d | is the dimension (IGNORED is by default 0) |
sz | set the counter to sz |
Definition at line 87 of file map_vector.hpp.