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

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

Detailed Description

template<typename ele_g, typename St>
struct prop_out_g< ele_g, St >

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 produce at output for each property

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

Definition at line 58 of file VTKWriter_grids.hpp.

#include <VTKWriter_grids.hpp>

Public Member Functions

 prop_out_g (std::string &v_out, const openfpm::vector_std< ele_g > &vg, const openfpm::vector< std::string > &prop_names, file_type ft)
 constructor More...
 
template<typename T >
void operator() (T &t) const
 
void lastProp ()
 Write the last property. More...
 

Data Fields

std::string & v_out
 property output string
 
const openfpm::vector_std
< ele_g > & 
vg
 grid that we are processing
 
file_type ft
 File type.
 
const openfpm::vector
< std::string > & 
prop_names
 list of names for the properties
 

Constructor & Destructor Documentation

template<typename ele_g, typename St>
prop_out_g< ele_g, St >::prop_out_g ( std::string &  v_out,
const openfpm::vector_std< ele_g > &  vg,
const openfpm::vector< std::string > &  prop_names,
file_type  ft 
)
inline

constructor

Parameters
v_outstring to fill with the vertex properties
vgvector of elements to write
prop_namesproperties name
ftfile type

Definition at line 80 of file VTKWriter_grids.hpp.

Member Function Documentation

template<typename ele_g, typename St>
void prop_out_g< ele_g, St >::lastProp ( )
inline

Write the last property.

Get a vertex iterator

Definition at line 103 of file VTKWriter_grids.hpp.

template<typename ele_g, typename St>
template<typename T >
void prop_out_g< ele_g, St >::operator() ( T &  t) const
inline

It produce an output for each propert

Parameters
tprop-id

Definition at line 90 of file VTKWriter_grids.hpp.


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