OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
object_si_di_e_op< op, v_src, v_dst, prp > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<template< typename, typename > class op, typename v_src, typename v_dst, int... prp>
struct object_si_di_e_op< op, v_src, v_dst, prp >

this class is a functor for "for_each" algorithm

This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to copy the selected properties applying an operation

Template Parameters
opoperation
v_srcsource object
d_srcdestination object
prpproperties

Definition at line 34 of file object_si_di.hpp.

#include <object_si_di.hpp>

Public Types

typedef to_boost_vmpl< prp... >::type v_prp
 Convert the packed properties into an MPL vector.
 

Public Member Functions

__device__ __host__ object_si_di_e_op (const v_src &src, v_dst &dst)
 Constructor.
 
template<typename T >
__device__ __host__ void operator() (T &t)
 It call the functor for each member.
 

Data Fields

const v_src & src
 Source object.
 
v_dst & dst
 Destination object.
 

Member Typedef Documentation

◆ v_prp

template<template< typename, typename > class op, typename v_src , typename v_dst , int... prp>
typedef to_boost_vmpl<prp...>::type object_si_di_e_op< op, v_src, v_dst, prp >::v_prp

Convert the packed properties into an MPL vector.

Definition at line 37 of file object_si_di.hpp.

Constructor & Destructor Documentation

◆ object_si_di_e_op()

template<template< typename, typename > class op, typename v_src , typename v_dst , int... prp>
__device__ __host__ object_si_di_e_op< op, v_src, v_dst, prp >::object_si_di_e_op ( const v_src &  src,
v_dst &  dst 
)
inline

Constructor.

Parameters
srcsource object
dstdestination object

Definition at line 51 of file object_si_di.hpp.

Member Function Documentation

◆ operator()()

template<template< typename, typename > class op, typename v_src , typename v_dst , int... prp>
template<typename T >
__device__ __host__ void object_si_di_e_op< op, v_src, v_dst, prp >::operator() ( T &  t)
inline

It call the functor for each member.

Definition at line 70 of file object_si_di.hpp.

Field Documentation

◆ dst

template<template< typename, typename > class op, typename v_src , typename v_dst , int... prp>
v_dst& object_si_di_e_op< op, v_src, v_dst, prp >::dst

Destination object.

Definition at line 43 of file object_si_di.hpp.

◆ src

template<template< typename, typename > class op, typename v_src , typename v_dst , int... prp>
const v_src& object_si_di_e_op< op, v_src, v_dst, prp >::src

Source object.

Definition at line 40 of file object_si_di.hpp.


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