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

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

Detailed Description

template<unsigned int Np, typename vector>
struct init_prop< Np, vector >

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 initialize the properties

Template Parameters
Npnumber of properties
vectortype of vector

Definition at line 72 of file se_class3_vector.hpp.

#include <se_class3_vector.hpp>

Public Member Functions

 init_prop (size_t(&prp_init)[Np])
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

size_t(& prp_init )[Np]
 vector for prop initialization
 

Constructor & Destructor Documentation

◆ init_prop()

template<unsigned int Np, typename vector >
init_prop< Np, vector >::init_prop ( size_t(&)  prp_init[Np])
inline

constructor

Parameters
prp_initproperties to initialize

Definition at line 83 of file se_class3_vector.hpp.

Member Function Documentation

◆ operator()()

template<unsigned int Np, typename vector >
template<typename T >
void init_prop< Np, vector >::operator() ( T &  t) const
inline

It call the copy function for each property.

Parameters
teach member

Definition at line 95 of file se_class3_vector.hpp.

Field Documentation

◆ prp_init

template<unsigned int Np, typename vector >
size_t(& init_prop< Np, vector >::prp_init)[Np]

vector for prop initialization

Definition at line 75 of file se_class3_vector.hpp.


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