OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
openfpm::add_prp_impl< OBJECT_ADD, vect_dst > Struct Template Reference

struct to merge two vectors More...

Detailed Description

template<typename vect_dst>
struct openfpm::add_prp_impl< OBJECT_ADD, vect_dst >

struct to merge two vectors

Definition at line 56 of file map_vector.hpp.

#include <map_vector.hpp>

Static Public Member Functions

template<typename S , typename M , typename gp , unsigned int impl, unsigned int... args>
static void add (const vector< S, M, typename memory_traits_lin< S >::type, memory_traits_lin, gp, impl > &v_src, vect_dst &v_dst)
 It add the element of a source vector to a destination vector. More...
 

Member Function Documentation

template<typename vect_dst >
template<typename S , typename M , typename gp , unsigned int impl, unsigned int... args>
static void openfpm::add_prp_impl< OBJECT_ADD, vect_dst >::add ( const vector< S, M, typename memory_traits_lin< S >::type, memory_traits_lin, gp, impl > &  v_src,
vect_dst &  v_dst 
)
inlinestatic

It add the element of a source vector to a destination vector.

The number of properties in the source vector must be smaller than the destination all the properties of S must be mapped so if S has 3 properties 3 numbers for args are required

Template Parameters
SBase object of the source vector
Mmemory type of the source vector
gpGrow policy of the source vector
argsone or more number that define which property to set-up
Parameters
v_srcvector to merge
v_dstvector to merge and result of the merge

Definition at line 73 of file map_vector.hpp.


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