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
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 1264 of file map_grid.hpp.

#include <map_grid.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 1275 of file map_grid.hpp.


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