OpenFPM_io  0.2.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Functions Variables Typedefs
prop_output_g< has_attributes, St, ele_g, i > Class Template Reference

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

Detailed Description

template<bool has_attributes, typename St, typename ele_g, unsigned int i>
class prop_output_g< has_attributes, St, ele_g, i >

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

Template Parameters
has_attributesparameter that specialize the function in case the grid define or not attributes name
Gridtype we are processing
ithe property we are going to write

Definition at line 27 of file VTKWriter_grids_util.hpp.

Member Function Documentation

template<bool has_attributes, typename St, typename ele_g, unsigned int i>
static std::string prop_output_g< has_attributes, St, ele_g, i >::get_attributes ( const std::string &  out)
inlinestatic

Get the attributes name.

Definition at line 115 of file VTKWriter_grids_util.hpp.

template<bool has_attributes, typename St, typename ele_g, unsigned int i>
static std::string prop_output_g< has_attributes, St, ele_g, i >::get_point_data ( const openfpm::vector< ele_g > &  vg)
inlinestatic

For each vertex set the value.

Template Parameters
ivertex property to print

vertex node output string

Get a vertex iterator

Definition at line 36 of file VTKWriter_grids_util.hpp.

template<bool has_attributes, typename St, typename ele_g, unsigned int i>
static std::string prop_output_g< has_attributes, St, ele_g, i >::get_point_property_header ( const std::string &  oprp)
inlinestatic

Given a Graph return the point data header for a typename T.

Template Parameters
Ttype to write
Parameters
n_nodenumber of the node

vertex node output string

Definition at line 67 of file VTKWriter_grids_util.hpp.


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