OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
copy_acc< S > Struct Template Reference

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

Detailed Description

template<typename S>
struct copy_acc< S >

this class is a functor for "for_each" algorithm

For each element of the boost::vector the operator() is called to copy the buffer containing the component of the point to the center point of the adaptive component

Parameters
Stype of the data to copy (if is a float point is float, int point is int ... )

Definition at line 22 of file AdaptiveCylinderCone.hpp.

#include <AdaptiveCylinderCone.hpp>

Public Member Functions

 copy_acc (const S *ptr)
 constructor it fix the size
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each member.
 

Data Fields

const S * ptr
 Pointer storing the data point.
 

Constructor & Destructor Documentation

◆ copy_acc()

template<typename S >
copy_acc< S >::copy_acc ( const S *  ptr)
inline

constructor it fix the size

Definition at line 28 of file AdaptiveCylinderCone.hpp.

Member Function Documentation

◆ operator()()

template<typename S >
template<typename T >
void copy_acc< S >::operator() ( T &  t) const
inline

It call the copy function for each member.

Definition at line 33 of file AdaptiveCylinderCone.hpp.

Field Documentation

◆ ptr

template<typename S >
const S* copy_acc< S >::ptr

Pointer storing the data point.

Definition at line 25 of file AdaptiveCylinderCone.hpp.


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