OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
vtk_dist_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_dist_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 91 of file VTKWriter_dist_graph.hpp.

#include <VTKWriter_dist_graph.hpp>

Public Types

typedef G::V_type::s_type s_type
 Vertex spatial type information.
 

Public Member Functions

 vtk_dist_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 attribute.
 

Data Fields

bool z_set
 indicate if the z coordinate has been set
 
s_type(& x )[3]
 coordinate of the vertex node
 
G::V_container & vo
 Vertex object container.
 
std::string & v_node
 vertex position converted to string
 

Member Typedef Documentation

◆ s_type

template<typename G , bool attr>
typedef G::V_type::s_type vtk_dist_vertex_node< G, attr >::s_type

Vertex spatial type information.

Definition at line 94 of file VTKWriter_dist_graph.hpp.

Constructor & Destructor Documentation

◆ vtk_dist_vertex_node()

template<typename G , bool attr>
vtk_dist_vertex_node< G, attr >::vtk_dist_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<...>
xposition of the vertex

Definition at line 117 of file VTKWriter_dist_graph.hpp.

Member Function Documentation

◆ operator()()

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

It call the functor for each attribute.

Parameters
tattribute id

Definition at line 134 of file VTKWriter_dist_graph.hpp.

◆ write()

template<typename G , bool attr>
void vtk_dist_vertex_node< G, attr >::write ( )
inline

Write collected information.

Definition at line 123 of file VTKWriter_dist_graph.hpp.

Field Documentation

◆ v_node

template<typename G , bool attr>
std::string& vtk_dist_vertex_node< G, attr >::v_node

vertex position converted to string

Definition at line 106 of file VTKWriter_dist_graph.hpp.

◆ vo

template<typename G , bool attr>
G::V_container& vtk_dist_vertex_node< G, attr >::vo

Vertex object container.

Definition at line 103 of file VTKWriter_dist_graph.hpp.

◆ x

template<typename G , bool attr>
s_type(& vtk_dist_vertex_node< G, attr >::x)[3]

coordinate of the vertex node

Definition at line 100 of file VTKWriter_dist_graph.hpp.

◆ z_set

template<typename G , bool attr>
bool vtk_dist_vertex_node< G, attr >::z_set

indicate if the z coordinate has been set

Definition at line 97 of file VTKWriter_dist_graph.hpp.


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