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< 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_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 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 387 of file VTKWriter_graph.hpp.

Member Function Documentation

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

Get the attributes name for edge.

Definition at line 574 of file VTKWriter_graph.hpp.

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

Get the attributes name for vertex.

Definition at line 565 of file VTKWriter_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string 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 424 of file VTKWriter_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string 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 517 of file VTKWriter_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string 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 397 of file VTKWriter_graph.hpp.

template<bool has_attributes, typename Graph, unsigned int i>
static std::string 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 466 of file VTKWriter_graph.hpp.


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