OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
Mem_fast_ker< Memory, layout_base, local_index > Class Template Reference

Detailed Description

template<typename Memory, template< typename > class layout_base, typename local_index>
class Mem_fast_ker< Memory, layout_base, local_index >

Definition at line 21 of file MemFast.hpp.

Public Types

typedef local_index local_index_type
 

Public Member Functions

 Mem_fast_ker (local_index slot, openfpm::vector_gpu_ker< aggregate< local_index >, layout_base > cl_n, openfpm::vector_gpu_ker< aggregate< local_index >, layout_base > cl_base)
 
__device__ int getNelements (int id) const
 
__device__ unsigned int get (unsigned int cell, unsigned int ele)
 Get an element in the cell. More...
 
unsigned int get (unsigned int cell, unsigned int ele) const
 Get an element in the cell. More...
 

Private Types

typedef openfpm::vector_gpu_ker< aggregate< local_index >, layout_base > base
 base that store the data
 

Private Attributes

local_index slot
 Number of slot for each cell.
 
openfpm::vector_gpu_ker< aggregate< local_index >, layout_base > cl_n
 number of particle in each cell list
 
base cl_base
 

Member Function Documentation

◆ get() [1/2]

template<typename Memory, template< typename > class layout_base, typename local_index>
__device__ unsigned int Mem_fast_ker< Memory, layout_base, local_index >::get ( unsigned int  cell,
unsigned int  ele 
)
inline

Get an element in the cell.

Parameters
cellid of the cell
eleelement id in the cell
Returns
the reference to the selected element

Definition at line 57 of file MemFast.hpp.

◆ get() [2/2]

template<typename Memory, template< typename > class layout_base, typename local_index>
unsigned int Mem_fast_ker< Memory, layout_base, local_index >::get ( unsigned int  cell,
unsigned int  ele 
) const
inline

Get an element in the cell.

Parameters
cellid of the cell
eleelement id in the cell
Returns
the reference to the selected element

Definition at line 71 of file MemFast.hpp.

Field Documentation

◆ cl_base

template<typename Memory, template< typename > class layout_base, typename local_index>
base Mem_fast_ker< Memory, layout_base, local_index >::cl_base
private

elements that each cell store (each cell can store a number of elements == slot )

Definition at line 34 of file MemFast.hpp.


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