this class is a functor for "for_each" algorithm More...
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 edge properties
Definition at line 310 of file GraphMLWriter.hpp.
#include <GraphMLWriter.hpp>
Public Member Functions | |
edge_prop (std::string &e_prop, typename G::E_type::attributes &a_name) | |
Constructor. More... | |
edge_prop (std::string &e_prop) | |
Constructor. More... | |
template<typename T > | |
void | operator() (T &t) |
It call the functor for each member. More... | |
Data Fields | |
int | cnt = 0 |
Properties counter. | |
std::string & | e_prop |
edge properties | |
std::string * | attributes_names |
Attribute names. | |
int | n_attr = 0 |
Number of attributes name defined into the vertex. | |
bool | to_destroy = false |
indicate if attributes_names is to destroy | |
|
inline |
Constructor.
Create an edge properties list
e_prop | std::string that is filled with the graph properties in the GraphML format |
a_name | stub SFINAE, it basically check if G::E_type has properties names defined, if yes this constructor is selected over the other one |
Definition at line 336 of file GraphMLWriter.hpp.
Constructor.
Create an edge properties list
e_prop | std::string that is filled with the graph properties in the GraphML format |
Definition at line 350 of file GraphMLWriter.hpp.
It call the functor for each member.
t | each member |
Create an entry for the attribute
Definition at line 376 of file GraphMLWriter.hpp.