OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
unsigned int get (unsigned int cell, unsigned int ele) const
 Get an element in the cell.
 

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 Typedef Documentation

◆ base

template<typename Memory , template< typename > class layout_base, typename local_index >
typedef openfpm::vector_gpu_ker<aggregate<local_index>,layout_base> Mem_fast_ker< Memory, layout_base, local_index >::base
private

base that store the data

Definition at line 30 of file MemFast.hpp.

◆ local_index_type

template<typename Memory , template< typename > class layout_base, typename local_index >
typedef local_index Mem_fast_ker< Memory, layout_base, local_index >::local_index_type

Definition at line 38 of file MemFast.hpp.

Constructor & Destructor Documentation

◆ Mem_fast_ker()

template<typename Memory , template< typename > class layout_base, typename local_index >
Mem_fast_ker< Memory, layout_base, local_index >::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 
)
inline

Definition at line 40 of file MemFast.hpp.

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.

◆ getNelements()

template<typename Memory , template< typename > class layout_base, typename local_index >
__device__ int Mem_fast_ker< Memory, layout_base, local_index >::getNelements ( int  id) const
inline

Definition at line 44 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.

◆ cl_n

template<typename Memory , template< typename > class layout_base, typename local_index >
openfpm::vector_gpu_ker<aggregate<local_index>,layout_base> Mem_fast_ker< Memory, layout_base, local_index >::cl_n
private

number of particle in each cell list

Definition at line 27 of file MemFast.hpp.

◆ slot

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

Number of slot for each cell.

Definition at line 24 of file MemFast.hpp.


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