OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
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.
 

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