OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
allocate< S > Struct Template Reference

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

Detailed Description

template<typename S>
struct allocate< S >

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

Parameters
TType of memory allocator

Definition at line 21 of file grid_base_impl_layout.hpp.

#include <grid_base_impl_layout.hpp>

Public Member Functions

 allocate (size_t sz)
 constructor it fix the size
 
template<typename T >
void operator() (T &t) const
 It call the allocate function for each member. More...
 

Data Fields

size_t sz
 size to allocate
 

Member Function Documentation

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

It call the allocate function for each member.

Create and set the memory allocator

Allocate the memory and create the reppresentation

Definition at line 32 of file grid_base_impl_layout.hpp.


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