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

◆ raw_read()

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.

Member Function Documentation

◆ operator()()

template<unsigned int dim, typename Tg >
template<typename T >
void raw_read< dim, Tg >::operator() ( T &  t) const
inline

It read for each property.

Definition at line 100 of file RawReader.hpp.

Field Documentation

◆ fl

template<unsigned int dim, typename Tg >
std::ifstream& raw_read< dim, Tg >::fl

File stream.

Definition at line 86 of file RawReader.hpp.

◆ gr

template<unsigned int dim, typename Tg >
grid_cpu<dim,Tg>& raw_read< dim, Tg >::gr

Grid out.

Definition at line 83 of file RawReader.hpp.


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