this class is a functor for "for_each" algorithm More...
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
| Tobj | object |
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.
Create a vertex properties list
| str | streamstring |
| obj | object to write |
Definition at line 50 of file CSVWriter.hpp.
It call the functor for each member.
Definition at line 57 of file CSVWriter.hpp.
| Tobj& csv_prp< Tobj >::obj |
Object to write.
Definition at line 40 of file CSVWriter.hpp.
| std::stringstream& csv_prp< Tobj >::str |
String containing the csv line constructed from an object.
Definition at line 37 of file CSVWriter.hpp.