OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse > Class Template Reference

Detailed Description

template<unsigned int dim, typename cnt_type, typename ids_type, unsigned int r_int, bool is_sparse>
class NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >

Definition at line 135 of file CellList_gpu_ker.cuh.

+ Inheritance diagram for NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >:

Public Member Functions

__device__ __host__ NN_gpu_it (const grid_key_dx< dim, ids_type > &cell_pos, const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > &starts, const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > &srt, const openfpm::array< ids_type, dim, cnt_type > &div_c, const openfpm::array< ids_type, dim, cnt_type > &off)
 
__device__ __host__ cnt_type get_sort ()
 
__device__ __host__ cnt_type get ()
 
__device__ __host__ NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse > & operator++ ()
 
__device__ cnt_type get_start (unsigned int ce_id)
 
__device__ cnt_type get_cid ()
 
__device__ __host__ bool isNext ()
 
- Public Member Functions inherited from NN_gpu_int_base_hr_impl< dim, r_int, pr_int, ids_type, cnt_type >
__device__ __host__ void init_impl (const grid_key_dx< dim, ids_type > &cell_pos, const openfpm::array< ids_type, dim, cnt_type > &div_c)
 
__device__ __host__ void SelectValid_impl (const openfpm::array< ids_type, dim, cnt_type > &div_c)
 
__device__ __host__ bool isNext_impl ()
 

Private Member Functions

__device__ __host__ void SelectValid ()
 

Private Attributes

const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > & starts
 
const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > & srt
 
const openfpm::array< ids_type, dim, cnt_type > & div_c
 
const openfpm::array< ids_type, dim, cnt_type > & off
 
cnt_type p_id
 
cnt_type p_id_end
 

Additional Inherited Members

- Data Fields inherited from NN_gpu_int_base_hr_impl< dim, r_int, pr_int, ids_type, cnt_type >
grid_key_dx< dim, ids_type > cell_act
 
grid_key_dx< dim, ids_type > cell_start
 
grid_key_dx< dim, ids_type > cell_stop
 
cnt_type c_id
 

Constructor & Destructor Documentation

◆ NN_gpu_it()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::NN_gpu_it ( const grid_key_dx< dim, ids_type > &  cell_pos,
const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > &  starts,
const openfpm::vector_gpu_ker< aggregate< cnt_type >, memory_traits_inte > &  srt,
const openfpm::array< ids_type, dim, cnt_type > &  div_c,
const openfpm::array< ids_type, dim, cnt_type > &  off 
)
inline

Definition at line 164 of file CellList_gpu_ker.cuh.

Member Function Documentation

◆ get()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::get ( )
inline

Definition at line 186 of file CellList_gpu_ker.cuh.

◆ get_cid()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::get_cid ( )
inline

Definition at line 205 of file CellList_gpu_ker.cuh.

◆ get_sort()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::get_sort ( )
inline

Definition at line 181 of file CellList_gpu_ker.cuh.

◆ get_start()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::get_start ( unsigned int  ce_id)
inline

Definition at line 200 of file CellList_gpu_ker.cuh.

◆ isNext()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ bool NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::isNext ( )
inline

Definition at line 210 of file CellList_gpu_ker.cuh.

◆ operator++()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse > & NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::operator++ ( )
inline

Definition at line 191 of file CellList_gpu_ker.cuh.

◆ SelectValid()

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
__device__ __host__ void NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::SelectValid ( )
inlineprivate

Definition at line 148 of file CellList_gpu_ker.cuh.

Field Documentation

◆ div_c

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
const openfpm::array<ids_type,dim,cnt_type>& NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::div_c
private

Definition at line 141 of file CellList_gpu_ker.cuh.

◆ off

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
const openfpm::array<ids_type,dim,cnt_type>& NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::off
private

Definition at line 143 of file CellList_gpu_ker.cuh.

◆ p_id

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::p_id
private

Definition at line 145 of file CellList_gpu_ker.cuh.

◆ p_id_end

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
cnt_type NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::p_id_end
private

Definition at line 146 of file CellList_gpu_ker.cuh.

◆ srt

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
const openfpm::vector_gpu_ker<aggregate<cnt_type>,memory_traits_inte>& NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::srt
private

Definition at line 139 of file CellList_gpu_ker.cuh.

◆ starts

template<unsigned int dim, typename cnt_type , typename ids_type , unsigned int r_int, bool is_sparse>
const openfpm::vector_gpu_ker<aggregate<cnt_type>,memory_traits_inte>& NN_gpu_it< dim, cnt_type, ids_type, r_int, is_sparse >::starts
private

Definition at line 137 of file CellList_gpu_ker.cuh.


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