this class is a functor for "for_each" algorithm More...
#include <GraphMLWriter.hpp>
Public Member Functions | |
edge_node (std::string &e_node, typename G::E_container &n_obj, typename G::E_type::attributes &a_name) | |
Constructor. More... | |
edge_node (std::string &e_node, typename G::E_container &n_obj) | |
Constructor. More... | |
void | new_node (size_t v_c, size_t s, size_t d) |
Create a new node. More... | |
void | end_node () |
Close a node. More... | |
template<typename T > | |
void | operator() (T &t) |
It call the functor for each member. More... | |
Data Fields | |
G::E_container & | vo |
int | cnt = 0 |
std::string & | e_node |
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 edge properties
Definition at line 376 of file GraphMLWriter.hpp.
|
inline |
Constructor.
Create an edge node
e_node | std::string that is filled with the graph node definition in the GraphML format |
n_obj | object container to access the object properties for example encapc<...> |
stub | SFINAE, it basically check if G has properties names defined, if yes this constructor is selected over the other one |
Definition at line 403 of file GraphMLWriter.hpp.
|
inline |
Constructor.
Create an edge node
e_node | std::string that is filled with the graph properties in the GraphML format |
n_obj | object container to access the object properties for example encapc<...> |
n_prop | number of properties |
Definition at line 419 of file GraphMLWriter.hpp.
|
inline |
|
inline |
It call the functor for each member.
Create an entry for the attribute
Definition at line 460 of file GraphMLWriter.hpp.