OpenFPM_io  0.2.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Functions Variables Typedefs
csv_prp< Tobj > Struct Template Reference

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

#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
 
Tobj & obj
 

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 33 of file CSVWriter.hpp.

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 49 of file CSVWriter.hpp.


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