OpenFPM  5.2.0
Project that contain the implementation of distributed structures
SFCKeysGrid< dim > Class Template Reference

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

#include <SFCKeys.hpp>

Public Member Functions

const openfpm::vector< size_t > & getKeys () const
 Return cellkeys vector. More...
 
template<typename CellList_type >
void get_hkey (CellList_type &cellList, grid_key_dx< dim > gridKey, size_t m)
 Get an hilbert key from the coordinates and add to the getKeys vector. More...
 
template<typename CellList_type >
void linearize_hkeys (CellList_type &cellList, 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
 
size_t m = 0
 Order of an hilbert curve.
 

Detailed Description

template<unsigned int dim>
class SFCKeysGrid< dim >

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

Template Parameters
dimDimansionality of the space

Definition at line 150 of file SFCKeys.hpp.

Member Function Documentation

◆ get_hkey()

template<unsigned int dim>
template<typename CellList_type >
void SFCKeysGrid< dim >::get_hkey ( CellList_type &  cellList,
grid_key_dx< dim >  gridKey,
size_t  m 
)
inline

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

Template Parameters
CellList_typeCell list type
Parameters
cellListCell list object
gridKeygrid key
morder of a curve

Definition at line 177 of file SFCKeys.hpp.

◆ getKeys()

template<unsigned int dim>
const openfpm::vector<size_t>& SFCKeysGrid< dim >::getKeys ( ) const
inline

Return cellkeys vector.

Returns
vector of cell keys

Definition at line 164 of file SFCKeys.hpp.

◆ linearize_hkeys()

template<unsigned int dim>
template<typename CellList_type >
void SFCKeysGrid< dim >::linearize_hkeys ( CellList_type &  cellList,
size_t  m 
)
inline

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

Template Parameters
CellList_typeCell list type
Parameters
cellListCell list object
morder of a curve

Definition at line 198 of file SFCKeys.hpp.


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