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 312 of file GraphMLWriter.hpp.
#include <GraphMLWriter.hpp>
Public Member Functions | |
edge_prop (std::string &e_prop, typename G::E_type::attributes &a_name) | |
Constructor. | |
edge_prop (std::string &e_prop) | |
Constructor. | |
template<typename T > | |
void | operator() (T &t) |
It call the functor for each member. | |
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 338 of file GraphMLWriter.hpp.
|
inline |
Constructor.
Create an edge properties list
e_prop | std::string that is filled with the graph properties in the GraphML format |
Definition at line 352 of file GraphMLWriter.hpp.
Definition at line 366 of file GraphMLWriter.hpp.
It call the functor for each member.
t | each member |
Create an entry for the attribute
Definition at line 378 of file GraphMLWriter.hpp.
std::string* edge_prop< G >::attributes_names |
Attribute names.
Definition at line 321 of file GraphMLWriter.hpp.
int edge_prop< G >::cnt = 0 |
Properties counter.
Definition at line 315 of file GraphMLWriter.hpp.
std::string& edge_prop< G >::e_prop |
edge properties
Definition at line 318 of file GraphMLWriter.hpp.
int edge_prop< G >::n_attr = 0 |
Number of attributes name defined into the vertex.
Definition at line 324 of file GraphMLWriter.hpp.
bool edge_prop< G >::to_destroy = false |
indicate if attributes_names is to destroy
Definition at line 327 of file GraphMLWriter.hpp.