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

◆ csv_prp()

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.

Member Function Documentation

◆ operator()()

template<typename Tobj >
template<typename T >
void csv_prp< Tobj >::operator() ( T &  t)
inline

It call the functor for each member.

Definition at line 57 of file CSVWriter.hpp.

Field Documentation

◆ obj

template<typename Tobj >
Tobj& csv_prp< Tobj >::obj

Object to write.

Definition at line 40 of file CSVWriter.hpp.

◆ str

template<typename Tobj >
std::stringstream& csv_prp< Tobj >::str

String containing the csv line constructed from an object.

Definition at line 37 of file CSVWriter.hpp.


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