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

selector for position or properties left side expression More...

Detailed Description

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

selector for position or properties left side expression

Template Parameters
vectortype of the original vector
prpproperty id

Definition at line 48 of file vector_dist_operators_cuda.cuh.

Public Types

typedef boost::mpl::at< typenamevector::value_type::type, boost::mpl::int_< prp > >::type property_act
 

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_type (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
 

Member Typedef Documentation

◆ property_act

template<typename vector , unsigned int prp>
typedef boost::mpl::at<typenamevector::value_type::type,boost::mpl::int_<prp>>::type pos_or_propL< vector, prp >::property_act

Definition at line 50 of file vector_dist_operators_cuda.cuh.

Member Function Documentation

◆ value()

template<typename vector , unsigned int prp>
__device__ static __host__ auto pos_or_propL< 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 53 of file vector_dist_operators_cuda.cuh.

◆ value_type()

template<typename vector , unsigned int prp>
__device__ static __host__ auto pos_or_propL< vector, prp >::value_type ( 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 59 of file vector_dist_operators_cuda.cuh.


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