OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
csv_col< Tobj, attr > Struct Template Reference

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

Detailed Description

template<typename Tobj, bool attr>
struct csv_col< Tobj, attr >

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
Tobject

Definition at line 80 of file CSVWriter.hpp.

#include <CSVWriter.hpp>

Public Member Functions

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

Data Fields

std::stringstream & str
 String containing the colums list as string.
 

Constructor & Destructor Documentation

◆ csv_col()

template<typename Tobj , bool attr>
csv_col< Tobj, attr >::csv_col ( std::stringstream &  str)
inline

Constructor.

\str String where to put the colum list

Definition at line 90 of file CSVWriter.hpp.

Member Function Documentation

◆ operator()()

template<typename Tobj , bool attr>
template<typename T >
void csv_col< Tobj, attr >::operator() ( T &  t)
inline

It call the functor for each member.

Definition at line 97 of file CSVWriter.hpp.

Field Documentation

◆ str

template<typename Tobj , bool attr>
std::stringstream& csv_col< Tobj, attr >::str

String containing the colums list as string.

Definition at line 83 of file CSVWriter.hpp.


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