OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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 27 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.
 

Data Fields

size_t sz
 size to allocate
 

Constructor & Destructor Documentation

◆ allocate()

template<typename S >
allocate< S >::allocate ( size_t  sz)
inline

constructor it fix the size

Definition at line 33 of file grid_base_impl_layout.hpp.

Member Function Documentation

◆ operator()()

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 38 of file grid_base_impl_layout.hpp.

Field Documentation

◆ sz

template<typename S >
size_t allocate< S >::sz

size to allocate

Definition at line 30 of file grid_base_impl_layout.hpp.


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