OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
vector_dist_expression_op< exp1, vector_type, VECT_APPLYKER_IN_GEN > 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_GEN >

Apply kernel operation.

Template Parameters
exp1expression1
NNlist

Definition at line 386 of file vector_dist_operators_apply_kernel.hpp.

#include <vector_dist_operators_apply_kernel.hpp>

Public Member Functions

void init () const
 This function must be called before value. More...
 
 vector_dist_expression_op (const exp1 &o1, NN &cl, Kernel &ker, const vector_orig &vd)
 Constructor. More...
 
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
 Get the type of the Cell-list.
 
typedef boost::mpl::at
< vector_type,
boost::mpl::int_< 1 > >::type 
Kernel
 Get the type of the kernel.
 
typedef boost::mpl::at
< vector_type,
boost::mpl::int_< 2 > >::type 
vector_orig
 Get the type of the vector containing the set of particles.
 
typedef apply_kernel_rtype
< decltype(o1.value(vect_dist_key_dx()))>
::rtype 
rtype
 Return type of the expression.
 

Private Attributes

const exp1 o1
 Expression.
 
NNcl
 Cell list.
 
Kernelker
 Kernel.
 
const vector_origvd
 Vector containing the particles.
 

Constructor & Destructor Documentation

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

Constructor.

Parameters
o1expression
clCell-list
kerKernel
vdvector containing the set of particles

Definition at line 431 of file vector_dist_operators_apply_kernel.hpp.

Member Function Documentation

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

This function must be called before value.

it initialize the expression if needed

Definition at line 418 of file vector_dist_operators_apply_kernel.hpp.

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

Evaluate the expression.

Parameters
keywhere to evaluate the expression
Returns
the result of the expression

Definition at line 442 of file vector_dist_operators_apply_kernel.hpp.


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