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
| G | graph type |
| attr | has the vertex attributes |
Definition at line 91 of file VTKWriter_graph.hpp.
#include <VTKWriter_graph.hpp>
Public Types | |
| typedef G::V_type::s_type | s_type |
| Vertex spatial type information. | |
Public Member Functions | |
| vtk_vertex_node (std::string &v_node, typename G::V_container &n_obj, s_type(&x)[3]) | |
| Constructor. | |
| void | write () |
| Write collected information. | |
| template<typename T > | |
| void | operator() (T &t) |
| It call the functor for each member. | |
Data Fields | |
| bool | z_set |
| Indicate if there is the information about the z coordinate. | |
| s_type(& | x )[3] |
| point to write | |
| G::V_container & | vo |
| Vertex object container. | |
| std::string & | v_node |
| vertex node string | |
| typedef G::V_type::s_type vtk_vertex_node< G, attr >::s_type |
Vertex spatial type information.
Definition at line 94 of file VTKWriter_graph.hpp.
|
inline |
Constructor.
Create a vertex properties list
| v_node | std::string that is filled with the graph properties in the GraphML format |
| n_obj | object container to access its properties for example encapc<...> |
| x | temporal buffer to store the point coordinates |
Definition at line 117 of file VTKWriter_graph.hpp.
|
inline |
It call the functor for each member.
| t | property id |
Definition at line 134 of file VTKWriter_graph.hpp.
|
inline |
Write collected information.
Definition at line 123 of file VTKWriter_graph.hpp.
| std::string& vtk_vertex_node< G, attr >::v_node |
vertex node string
Definition at line 106 of file VTKWriter_graph.hpp.
| G::V_container& vtk_vertex_node< G, attr >::vo |
Vertex object container.
Definition at line 103 of file VTKWriter_graph.hpp.
| s_type(& vtk_vertex_node< G, attr >::x)[3] |
point to write
Definition at line 100 of file VTKWriter_graph.hpp.
| bool vtk_vertex_node< G, attr >::z_set |
Indicate if there is the information about the z coordinate.
Definition at line 97 of file VTKWriter_graph.hpp.