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

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

Detailed Description

template<unsigned int dim, typename Tg>
struct raw_read< dim, Tg >

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. Is mainly used to read each property

Template Parameters
ele_gelement that store the grid and its attributes
Parameters
Sttype of space where the grid live

Definition at line 80 of file RawReader.hpp.

#include <RawReader.hpp>

Public Member Functions

 raw_read (grid_cpu< dim, Tg > &gr, std::ifstream &fl)
 constructor More...
 
template<typename T >
void operator() (T &t) const
 It read for each property.
 

Data Fields

grid_cpu< dim, Tg > & gr
 Grid out.
 
std::ifstream & fl
 File stream.
 

Constructor & Destructor Documentation

template<unsigned int dim, typename Tg>
raw_read< dim, Tg >::raw_read ( grid_cpu< dim, Tg > &  gr,
std::ifstream &  fl 
)
inline

constructor

Parameters
grgrid to fill
flfile from where to read

Definition at line 94 of file RawReader.hpp.


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