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

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

#include <VTKWriter_graph.hpp>

Static Private Member Functions

static std::string get_point_data (Graph &g)
 For each vertex set the value. More...
 
static std::string get_cell_data (const Graph &g)
 For each edge set the value. 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<typename Graph, unsigned int i>
class prop_output< false, Graph, i >

This class specialize functions in the case the type T has 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
iid of the property we are going to write

Definition at line 594 of file VTKWriter_graph.hpp.

Member Function Documentation

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_attributes_edge ( )
inlinestaticprivate

Get the attributes name for edge.

Definition at line 761 of file VTKWriter_graph.hpp.

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_attributes_vertex ( )
inlinestaticprivate

Get the attributes name for vertex.

Definition at line 752 of file VTKWriter_graph.hpp.

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_cell_data ( const Graph &  g)
inlinestaticprivate

For each edge set the value.

Template Parameters
iedge property to print

vertex node output string

Get a vertex iterator

Get an edge iterator

Definition at line 629 of file VTKWriter_graph.hpp.

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_cell_property_header ( size_t  prop)
inlinestaticprivate

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

Parameters
n_nodenumber of the node

edge node output string

Definition at line 704 of file VTKWriter_graph.hpp.

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_point_data ( Graph &  g)
inlinestaticprivate

For each vertex set the value.

Template Parameters
ivertex property to print

vertex node output string

Get a vertex iterator

Definition at line 602 of file VTKWriter_graph.hpp.

template<typename Graph , unsigned int i>
static std::string prop_output< false, Graph, i >::get_point_property_header ( size_t  prop)
inlinestaticprivate

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

Template Parameters
Ttype to write
Parameters
n_nodenumber of the node
propid of the property

vertex node output string

Definition at line 672 of file VTKWriter_graph.hpp.


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