OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
vtk_vertex_node< G, attr > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename G, bool attr>
struct vtk_vertex_node< G, attr >

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

Template Parameters
Ggraph type
attrhas the vertex attributes

Definition at line 92 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. More...
 
void write ()
 Write collected information.
 
template<typename T >
void operator() (T &t)
 It call the functor for each member. More...
 

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
 

Constructor & Destructor Documentation

template<typename G, bool attr>
vtk_vertex_node< G, attr >::vtk_vertex_node ( std::string &  v_node,
typename G::V_container &  n_obj,
s_type(&)  x[3] 
)
inline

Constructor.

Create a vertex properties list

Parameters
v_nodestd::string that is filled with the graph properties in the GraphML format
n_objobject container to access its properties for example encapc<...>
xtemporal buffer to store the point coordinates

Definition at line 118 of file VTKWriter_graph.hpp.

Member Function Documentation

template<typename G, bool attr>
template<typename T >
void vtk_vertex_node< G, attr >::operator() ( T &  t)
inline

It call the functor for each member.

Parameters
tproperty id

Definition at line 135 of file VTKWriter_graph.hpp.


The documentation for this struct was generated from the following file: