OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
prop_out_v_pvtp< ele_v, St > Struct Template Reference

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

Detailed Description

template<typename ele_v, typename St>
struct prop_out_v_pvtp< ele_v, 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 an output for each property

Template Parameters
ele_vIt is the class ele_v that store the couple vector of position and property

Definition at line 208 of file VTKWriter_point_set.hpp.

#include <VTKWriter_point_set.hpp>

Public Member Functions

 prop_out_v_pvtp (std::string &v_out, const openfpm::vector< std::string > &prop_names)
 constructor
 
template<typename T >
void operator() (T &t) const
 It produce an output for each property.
 
void lastProp ()
 

Data Fields

std::string & v_out
 property output string
 
const openfpm::vector< std::string > & prop_names
 properties names
 

Constructor & Destructor Documentation

◆ prop_out_v_pvtp()

template<typename ele_v , typename St >
prop_out_v_pvtp< ele_v, St >::prop_out_v_pvtp ( std::string &  v_out,
const openfpm::vector< std::string > &  prop_names 
)
inline

constructor

Parameters
v_outstring to fill with the vertex properties
vvvector we are processing
ftASCII or BINARY format

Definition at line 223 of file VTKWriter_point_set.hpp.

Member Function Documentation

◆ lastProp()

template<typename ele_v , typename St >
void prop_out_v_pvtp< ele_v, St >::lastProp ( )
inline

Definition at line 247 of file VTKWriter_point_set.hpp.

◆ operator()()

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

It produce an output for each property.

Parameters
tproperty id

Definition at line 236 of file VTKWriter_point_set.hpp.

Field Documentation

◆ prop_names

template<typename ele_v , typename St >
const openfpm::vector<std::string>& prop_out_v_pvtp< ele_v, St >::prop_names

properties names

Definition at line 214 of file VTKWriter_point_set.hpp.

◆ v_out

template<typename ele_v , typename St >
std::string& prop_out_v_pvtp< ele_v, St >::v_out

property output string

Definition at line 211 of file VTKWriter_point_set.hpp.


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