OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 More...
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property. More...
 

Data Fields

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

Constructor & Destructor Documentation

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

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.


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