this class is a functor for "for_each" algorithm More...
#include <GraphMLWriter.hpp>
Public Member Functions | |
vertex_prop (std::string &v_prop, typename G::V_type::attributes &a_name) | |
Constructor. More... | |
vertex_prop (std::string &v_prop) | |
Constructor. More... | |
template<typename T > | |
void | operator() (T &t) |
It call the functor for each member. More... | |
Data Fields | |
int | cnt = 0 |
std::string & | v_prop |
std::string * | attributes_names |
int | n_attr = 0 |
this class is a functor for "for_each" algorithm
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 vertex properties
Definition at line 51 of file GraphMLWriter.hpp.
|
inline |
Constructor.
Create a vertex properties list
v_prop | std::string that is filled with the graph properties in the GraphML format |
stub | SFINAE, it basically check if G has properties names defined, if yes this constructor is selected over the other one |
Definition at line 75 of file GraphMLWriter.hpp.
|
inline |
Constructor.
Create a vertex properties list
v_prop | std::string that is filled with the graph properties in the GraphML format |
n_prop | number of properties |
Definition at line 90 of file GraphMLWriter.hpp.
It call the functor for each member.
Create an entry for the attribute
Definition at line 105 of file GraphMLWriter.hpp.