Definition at line 30 of file grid_key_dx_iterator_hilbert.hpp.
Public Member Functions | |
grid_key_dx_iterator_hilbert (int32_t m) | |
Constructor. | |
grid_key_dx_iterator_hilbert< dim > & | operator++ () |
Get the next element. | |
bool | isNext () |
Check if there is the next element. | |
const grid_key_dx< dim > & | get () |
Get the actual key. | |
void | reset () |
Reset the iterator (it restart from the beginning) | |
Protected Attributes | |
grid_key_dx< dim > | gk |
Actual position in the grid. | |
Private Attributes | |
uint64_t | hkey = 0 |
Actual position. | |
size_t | m |
Order of a hilbert curve. | |
grid_sm< dim, void > | grid_base |
Size of the hilbert grid in each dimension. | |
|
inline |
Constructor.
m is the order of the hilber curve m=2 produce an hilber curve passing 2^(2) point in each direction so 4x4 points in 2D 4x4x4 in 3D
m | order of the hilber curve |
Definition at line 62 of file grid_key_dx_iterator_hilbert.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 137 of file grid_key_dx_iterator_hilbert.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 117 of file grid_key_dx_iterator_hilbert.hpp.
|
inline |
Get the next element.
Definition at line 89 of file grid_key_dx_iterator_hilbert.hpp.
|
inline |
Reset the iterator (it restart from the beginning)
Initialize to 0 the index
Definition at line 146 of file grid_key_dx_iterator_hilbert.hpp.
|
protected |
Actual position in the grid.
Definition at line 50 of file grid_key_dx_iterator_hilbert.hpp.
|
private |
Size of the hilbert grid in each dimension.
Definition at line 45 of file grid_key_dx_iterator_hilbert.hpp.
|
private |
Actual position.
Definition at line 39 of file grid_key_dx_iterator_hilbert.hpp.
|
private |
Order of a hilbert curve.
Definition at line 42 of file grid_key_dx_iterator_hilbert.hpp.