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_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 83 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 More...
 
template<typename T >
void operator() (T &t) const
 It produce an output for each property. More...
 
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

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 104 of file VTKWriter_point_set.hpp.

Member Function Documentation

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

Get a vertex iterator

Definition at line 125 of file VTKWriter_point_set.hpp.

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 117 of file VTKWriter_point_set.hpp.


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