This class specialize functions in the case the type T has or not defined attributes. More...
#include <VTKWriter_grids_util.hpp>
Static Public Member Functions | |
static std::string | get_point_data (const openfpm::vector< ele_g > &vg) |
For each vertex set the value. More... | |
static std::string | get_point_property_header (const std::string &oprp) |
Given a Graph return the point data header for a typename T. More... | |
static std::string | get_attributes (const std::string &out) |
Get the attributes name. More... | |
This class specialize functions in the case the type T has or not defined attributes.
In C++ partial specialization of a function is not allowed so we have to encapsulate this function in a class
has_attributes | parameter that specialize the function in case the grid define or not attributes name |
Grid | type we are processing |
i | the property we are going to write |
Definition at line 27 of file VTKWriter_grids_util.hpp.
|
inlinestatic |
Get the attributes name.
Definition at line 115 of file VTKWriter_grids_util.hpp.
|
inlinestatic |
For each vertex set the value.
i | vertex property to print |
vertex node output string
Get a vertex iterator
Definition at line 36 of file VTKWriter_grids_util.hpp.
|
inlinestatic |
Given a Graph return the point data header for a typename T.
T | type to write |
n_node | number of the node |
vertex node output string
Definition at line 67 of file VTKWriter_grids_util.hpp.