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

#include <VTKWriter_point_set.hpp>

Public Member Functions

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

Data Fields

file_type ft
 Binary or ASCII.
 
std::string & v_out
 property output string
 
const openfpm::vector_std< ele_v > & vv
 vector that we are processing
 
const openfpm::vector< std::string > & prop_names
 properties names
 

Constructor & Destructor Documentation

◆ prop_out_v()

template<typename ele_v , typename St >
prop_out_v< ele_v, St >::prop_out_v ( std::string &  v_out,
const openfpm::vector_std< ele_v > &  vv,
const openfpm::vector< std::string > &  prop_names,
file_type  ft 
)
inline

constructor

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

Definition at line 105 of file VTKWriter_point_set.hpp.

Member Function Documentation

◆ lastProp()

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

Get a vertex iterator

Definition at line 126 of file VTKWriter_point_set.hpp.

◆ operator()()

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

It produce an output for each property.

Parameters
tproperty id

Definition at line 118 of file VTKWriter_point_set.hpp.

Field Documentation

◆ ft

template<typename ele_v , typename St >
file_type prop_out_v< ele_v, St >::ft

Binary or ASCII.

Definition at line 87 of file VTKWriter_point_set.hpp.

◆ prop_names

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

properties names

Definition at line 96 of file VTKWriter_point_set.hpp.

◆ v_out

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

property output string

Definition at line 90 of file VTKWriter_point_set.hpp.

◆ vv

template<typename ele_v , typename St >
const openfpm::vector_std< ele_v >& prop_out_v< ele_v, St >::vv

vector that we are processing

Definition at line 93 of file VTKWriter_point_set.hpp.


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