OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
 
template<typename T >
void operator() (T &t) const
 
void lastProp ()
 Write the last property.
 

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

◆ prop_out_g()

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

◆ lastProp()

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.

◆ operator()()

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.

Field Documentation

◆ ft

template<typename ele_g , typename St >
file_type prop_out_g< ele_g, St >::ft

File type.

Definition at line 67 of file VTKWriter_grids.hpp.

◆ prop_names

template<typename ele_g , typename St >
const openfpm::vector<std::string>& prop_out_g< ele_g, St >::prop_names

list of names for the properties

Definition at line 70 of file VTKWriter_grids.hpp.

◆ v_out

template<typename ele_g , typename St >
std::string& prop_out_g< ele_g, St >::v_out

property output string

Definition at line 61 of file VTKWriter_grids.hpp.

◆ vg

template<typename ele_g , typename St >
const openfpm::vector_std< ele_g >& prop_out_g< ele_g, St >::vg

grid that we are processing

Definition at line 64 of file VTKWriter_grids.hpp.


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