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

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

Detailed Description

template<typename Tobj>
struct csv_prp< Tobj >

this class is a functor for "for_each" algorithm

For each element of the boost::vector the operator() is called. Is mainly used to create a string containing all the properties of the object

Template Parameters
Tobjobject

Definition at line 34 of file CSVWriter.hpp.

#include <CSVWriter.hpp>

Public Member Functions

 csv_prp (std::stringstream &str, Tobj &obj)
 Constructor. More...
 
template<typename T >
void operator() (T &t)
 It call the functor for each member.
 

Data Fields

std::stringstream & str
 String containing the csv line constructed from an object.
 
Tobj & obj
 Object to write.
 

Constructor & Destructor Documentation

template<typename Tobj>
csv_prp< Tobj >::csv_prp ( std::stringstream &  str,
Tobj &  obj 
)
inline

Constructor.

Create a vertex properties list

Parameters
strstreamstring
objobject to write

Definition at line 50 of file CSVWriter.hpp.


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