OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
pos_or_propR< vector, prp > Struct Template Reference

selector for position or properties right side position More...

Detailed Description

template<typename vector, unsigned int prp>
struct pos_or_propR< vector, prp >

selector for position or properties right side position

Template Parameters
vectortype of the original vector
prpproperty id

Definition at line 157 of file vector_dist_operators_cuda.cuh.

Static Public Member Functions

__device__ static __host__ auto value (vector &v, const vect_dist_key_dx &k) -> decltype(v.template getProp< prp >(k))
 return the value (position or property) of the particle k in the vector v
 
__device__ static __host__ auto value (vector &v, const unsigned int &k) -> decltype(v.template getProp< prp >(k))
 return the value (position or property) of the particle k in the vector v
 

Member Function Documentation

◆ value() [1/2]

template<typename vector , unsigned int prp>
__device__ static __host__ auto pos_or_propR< vector, prp >::value ( vector &  v,
const unsigned int &  k 
) -> decltype(v.template getProp<prp>(k))
inlinestatic

return the value (position or property) of the particle k in the vector v

Definition at line 166 of file vector_dist_operators_cuda.cuh.

◆ value() [2/2]

template<typename vector , unsigned int prp>
__device__ static __host__ auto pos_or_propR< vector, prp >::value ( vector &  v,
const vect_dist_key_dx k 
) -> decltype(v.template getProp<prp>(k))
inlinestatic

return the value (position or property) of the particle k in the vector v

Definition at line 160 of file vector_dist_operators_cuda.cuh.


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