Class for an hilbert order processing of cell keys for CellList_gen implementation. More...
Class for an hilbert order processing of cell keys for CellList_gen implementation.
dim | Dimansionality of the space |
Definition at line 72 of file ProcKeys.hpp.
#include <ProcKeys.hpp>
Public Types | |
typedef ParticleIt_CellP < CellList > | Pit |
Particle Iterator produced by this key generator. | |
Public Member Functions | |
const openfpm::vector< size_t > & | getKeys () const |
Return cellkeys vector. More... | |
template<typename S > | |
void | get_hkey (S &obj, grid_key_dx< dim > gk, size_t m) |
Get an hilbert key from the coordinates and add to the getKeys vector. More... | |
template<typename S > | |
void | linearize_hkeys (S &obj, size_t m) |
Get get the coordinates from hilbert key, linearize and add to the getKeys vector. More... | |
Private Attributes | |
openfpm::vector< size_t > | keys |
vector for storing the cell keys | |
openfpm::vector< size_t > | p_keys |
vector for storing the particle keys | |
size_t | m = 0 |
Order of an hilbert curve. | |
|
inline |
Get an hilbert key from the coordinates and add to the getKeys vector.
S | Cell list type |
obj | Cell list object |
gk | grid key |
m | order of a curve |
Definition at line 106 of file ProcKeys.hpp.
|
inline |
|
inline |
Get get the coordinates from hilbert key, linearize and add to the getKeys vector.
S | Cell list type |
obj | Cell list object |
m | order of a curve |
Definition at line 130 of file ProcKeys.hpp.