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
dist_prop_output< has_attributes, Graph, i > Class Template Reference

This class specialize functions in the case the type T has or not defined attributes. More...

#include <VTKWriter_dist_graph.hpp>

Static Public Member Functions

static std::string get_point_data (const Graph &g)
 For each vertex set the value. More...
 
static std::string get_cell_data (const Graph &g)
 For each edge set the value, set 1 on vertices, needed by vtk file format. More...
 
static std::string get_point_property_header (size_t prop)
 Given a Graph return the point data header for a typename T. More...
 
static std::string get_cell_property_header (size_t prop)
 Given a Graph return the cell data header for a typename T. More...
 
static std::string get_attributes_vertex ()
 Get the attributes name for vertex. More...
 
static std::string get_attributes_edge ()
 Get the attributes name for edge. More...
 

Detailed Description

template<bool has_attributes, typename Graph, unsigned int i>
class dist_prop_output< has_attributes, Graph, 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 vertex define or not attributes name
Graphtype of graph we are processing
ithe property we are going to write

Definition at line 386 of file VTKWriter_dist_graph.hpp.

Member Function Documentation

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_attributes_edge ( )
inlinestatic

Get the attributes name for edge.

Definition at line 573 of file VTKWriter_dist_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_attributes_vertex ( )
inlinestatic

Get the attributes name for vertex.

Definition at line 564 of file VTKWriter_dist_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_cell_data ( const Graph &  g)
inlinestatic

For each edge set the value, set 1 on vertices, needed by vtk file format.

Template Parameters
iedge property to print

vertex node output string

Get a vertex iterator

Get an edge iterator

Definition at line 423 of file VTKWriter_dist_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_cell_property_header ( size_t  prop)
inlinestatic

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

Template Parameters
Ttype to write
Parameters
n_nodenumber of the node

edge node output string

Definition at line 516 of file VTKWriter_dist_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_point_data ( const Graph &  g)
inlinestatic

For each vertex set the value.

Template Parameters
ivertex property to print

vertex node output string

Get a vertex iterator

Definition at line 396 of file VTKWriter_dist_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string dist_prop_output< has_attributes, Graph, i >::get_point_property_header ( size_t  prop)
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 465 of file VTKWriter_dist_graph.hpp.


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