OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Process_keys_grid< dim, CellList > Class Template Reference

Class for an hilbert order processing of cell keys for CellList_gen implementation. More...

Detailed Description

template<unsigned int dim, typename CellList>
class Process_keys_grid< dim, CellList >

Class for an hilbert order processing of cell keys for CellList_gen implementation.

Template Parameters
dimDimansionality of the space

Definition at line 161 of file ProcKeys.hpp.

#include <ProcKeys.hpp>

Public Types

typedef ParticleIt_CellP< CellListPit
 Particle Iterator produced by this key generator.
 

Public Member Functions

const openfpm::vector< size_t > & getKeys () const
 Return cellkeys vector.
 
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.
 
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.
 

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.
 

Member Typedef Documentation

◆ Pit

template<unsigned int dim, typename CellList >
typedef ParticleIt_CellP<CellList> Process_keys_grid< dim, CellList >::Pit

Particle Iterator produced by this key generator.

Definition at line 175 of file ProcKeys.hpp.

Member Function Documentation

◆ get_hkey()

template<unsigned int dim, typename CellList >
template<typename S >
void Process_keys_grid< dim, CellList >::get_hkey ( S &  obj,
grid_key_dx< dim >  gk,
size_t  m 
)
inline

Get an hilbert key from the coordinates and add to the getKeys vector.

Template Parameters
SCell list type
Parameters
objCell list object
gkgrid key
morder of a curve

Definition at line 195 of file ProcKeys.hpp.

◆ getKeys()

template<unsigned int dim, typename CellList >
const openfpm::vector< size_t > & Process_keys_grid< dim, CellList >::getKeys ( ) const
inline

Return cellkeys vector.

Returns
vector of cell keys

Definition at line 182 of file ProcKeys.hpp.

◆ linearize_hkeys()

template<unsigned int dim, typename CellList >
template<typename S >
void Process_keys_grid< dim, CellList >::linearize_hkeys ( S &  obj,
size_t  m 
)
inline

Get get the coordinates from hilbert key, linearize and add to the getKeys vector.

Template Parameters
SCell list type
Parameters
objCell list object
morder of a curve

Definition at line 216 of file ProcKeys.hpp.

Field Documentation

◆ keys

template<unsigned int dim, typename CellList >
openfpm::vector<size_t> Process_keys_grid< dim, CellList >::keys
private

vector for storing the cell keys

Definition at line 164 of file ProcKeys.hpp.

◆ m

template<unsigned int dim, typename CellList >
size_t Process_keys_grid< dim, CellList >::m = 0
private

Order of an hilbert curve.

Definition at line 170 of file ProcKeys.hpp.

◆ p_keys

template<unsigned int dim, typename CellList >
openfpm::vector<size_t> Process_keys_grid< dim, CellList >::p_keys
private

vector for storing the particle keys

Definition at line 167 of file ProcKeys.hpp.


The documentation for this class was generated from the following file: