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 vertex properties
Definition at line 51 of file GraphMLWriter.hpp.
#include <GraphMLWriter.hpp>
Public Member Functions | |
| vertex_prop (std::string &v_prop, typename G::V_type::attributes &a_name) | |
| Constructor. | |
| vertex_prop (std::string &v_prop) | |
| Constructor. | |
| ~vertex_prop () | |
| destructor | |
| template<typename T > | |
| void | operator() (T &t) |
Data Fields | |
| int | cnt = 0 |
| Properties counter. | |
| std::string & | v_prop |
| vertex 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 a vertex properties list
| v_prop | std::string that is filled with the graph properties in the GraphML format |
| a_name | array with the names of the properties |
Definition at line 76 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 |
Definition at line 90 of file GraphMLWriter.hpp.
|
inline |
destructor
Definition at line 105 of file GraphMLWriter.hpp.
It call the functor for each member
| t | each member |
Create an entry for the attribute
Definition at line 117 of file GraphMLWriter.hpp.
| std::string* vertex_prop< G >::attributes_names |
Attribute names.
Definition at line 60 of file GraphMLWriter.hpp.
| int vertex_prop< G >::cnt = 0 |
Properties counter.
Definition at line 54 of file GraphMLWriter.hpp.
| int vertex_prop< G >::n_attr = 0 |
Number of attributes name defined into the vertex.
Definition at line 63 of file GraphMLWriter.hpp.
| bool vertex_prop< G >::to_destroy = false |
indicate if attributes_names is to destroy
Definition at line 66 of file GraphMLWriter.hpp.
| std::string& vertex_prop< G >::v_prop |
vertex properties
Definition at line 57 of file GraphMLWriter.hpp.