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 412 of file GraphMLWriter.hpp.
#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. | |
edge_node (std::string &e_node, typename G::E_container &n_obj) | |
Constructor. | |
void | new_node (size_t v_c, size_t s, size_t d) |
Create a new node. | |
void | end_node () |
Close a node. | |
template<typename T > | |
void | operator() (T &t) |
Data Fields | |
G::E_container & | vo |
Vertex object container. | |
int | cnt = 0 |
Properties counter. | |
std::string & | e_node |
edge node string | |
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 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<...> |
a_name | attributes names |
Definition at line 441 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<...> |
Definition at line 456 of file GraphMLWriter.hpp.
Definition at line 471 of file GraphMLWriter.hpp.
|
inline |
|
inline |
Create a new node.
v_c | node number |
s | source node id |
d | destination node id |
Definition at line 484 of file GraphMLWriter.hpp.
It call the functor for each member
t | each member |
Create an entry for the attribute
Definition at line 510 of file GraphMLWriter.hpp.
std::string* edge_node< G >::attributes_names |
Attribute names.
Definition at line 424 of file GraphMLWriter.hpp.
int edge_node< G >::cnt = 0 |
Properties counter.
Definition at line 418 of file GraphMLWriter.hpp.
std::string& edge_node< G >::e_node |
edge node string
Definition at line 421 of file GraphMLWriter.hpp.
int edge_node< G >::n_attr = 0 |
Number of attributes name defined into the vertex.
Definition at line 427 of file GraphMLWriter.hpp.
bool edge_node< G >::to_destroy = false |
indicate if attributes_names is to destroy
Definition at line 430 of file GraphMLWriter.hpp.
G::E_container& edge_node< G >::vo |
Vertex object container.
Definition at line 415 of file GraphMLWriter.hpp.