OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM > Class Template Reference

Apply kernel operation. More...

Detailed Description

template<typename exp1, typename vector_type>
class vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >

Apply kernel operation.

Template Parameters
exp1expression1
NNlist

Definition at line 535 of file vector_dist_operators_apply_kernel.hpp.

#include <vector_dist_operators_apply_kernel.hpp>

Public Types

typedef has_vector_kernel< vector_orig_nr >::type is_ker
 indicate if this expression operate on kernel expression
 
typedef vector_orig_nr vtype
 vector type on which this expression work
 
typedef boost::mpl::bool_< false > is_sort
 indicate that is apply_kernel is not a sorted version
 
typedef NN_nr NN_type
 type of NN structure
 

Public Member Functions

NN_nrgetNN () const
 get the NN object More...
 
const vtypegetVector () const
 get the vector More...
 
void init () const
 This function must be called before value. More...
 
 vector_dist_expression_op (NN &cl, Kernel &ker, const vector_orig &vd)
 Constructor. More...
 
__device__ __host__ std::remove_reference< rtype >::type value (const vect_dist_key_dx &key) const
 Evaluate the expression. More...
 

Private Types

typedef boost::mpl::at< vector_type, boost::mpl::int_< 0 > >::type NN
 Return the type of the Cell-list.
 
typedef boost::mpl::at< vector_type, boost::mpl::int_< 1 > >::type Kernel
 Return the type of the kernel.
 
typedef boost::mpl::at< vector_type, boost::mpl::int_< 2 > >::type vector_orig
 Return the vector containing the position of the particles.
 
typedef std::remove_reference< NN >::type NN_nr
 Return the type of the Cell-list.
 
typedef std::remove_reference< Kernel >::type Kernel_nr
 Return the type of the kernel.
 
typedef std::remove_reference< vector_orig >::type vector_orig_nr
 Return the vector containing the position of the particles.
 
typedef apply_kernel_rtype< decltype(std::declval< Kernel_nr >).value(Point< vector_orig_nr::dims, typename vector_orig_nr::stype >0.0), Point< vector_orig_nr::dims, typename vector_orig_nr::stype >0.0)))>::rtype rtype
 Get the return type of the expression.
 

Private Attributes

mutable_or_not< NN, is_gpu_celllist< NN >::type::value||is_gpu_ker_celllist< NN >::type::value > cl
 Cell-list.
 
mutable_or_not< Kernel, is_gpu_celllist< NN >::type::value||is_gpu_ker_celllist< NN >::type::value > ker
 kernel
 
const vector_orig vd
 vector with the particle positions
 

Constructor & Destructor Documentation

◆ vector_dist_expression_op()

template<typename exp1 , typename vector_type >
vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >::vector_dist_expression_op ( NN cl,
Kernel ker,
const vector_orig vd 
)
inline

Constructor.

Parameters
clcell-list
kerkernel
vdVector containing the particle positions

Definition at line 614 of file vector_dist_operators_apply_kernel.hpp.

Member Function Documentation

◆ getNN()

template<typename exp1 , typename vector_type >
NN_nr* vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >::getNN ( ) const
inline

get the NN object

Returns
the NN object

Definition at line 583 of file vector_dist_operators_apply_kernel.hpp.

◆ getVector()

template<typename exp1 , typename vector_type >
const vtype& vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >::getVector ( ) const
inline

get the vector

Returns
the vector

Definition at line 593 of file vector_dist_operators_apply_kernel.hpp.

◆ init()

template<typename exp1 , typename vector_type >
void vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 603 of file vector_dist_operators_apply_kernel.hpp.

◆ value()

template<typename exp1 , typename vector_type >
__device__ __host__ std::remove_reference<rtype>::type vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_SIM >::value ( const vect_dist_key_dx key) const
inline

Evaluate the expression.

Parameters
keywhere to evaluate the expression
Returns
the result produced by the expression

Definition at line 625 of file vector_dist_operators_apply_kernel.hpp.


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