Vector iterator.
Definition at line 108 of file vector_map_iterator.hpp.
#include <vector_map_iterator.hpp>
Public Member Functions | |
vector_key_iterator (size_t end, size_t start=0) | |
Constructor require the size of the vector. | |
vector_key_iterator & | 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 | |
size_t | end |
Linearized end element. | |
|
inline |
Constructor require the size of the vector.
end | point |
start | starting point |
Definition at line 126 of file vector_map_iterator.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 187 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 167 of file vector_map_iterator.hpp.
|
inline |
Get the next element.
Get the next element
increment the first index
Definition at line 138 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 153 of file vector_map_iterator.hpp.
|
private |
Linearized end element.
Definition at line 111 of file vector_map_iterator.hpp.
|
protected |
Actual key.
Definition at line 116 of file vector_map_iterator.hpp.