OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
dist_prop_output< false, Graph, i > Class Template Reference

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

Detailed Description

template<typename Graph, unsigned int i>
class dist_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 609 of file VTKWriter_dist_graph.hpp.

#include <VTKWriter_dist_graph.hpp>

Static Private Member Functions

static std::string get_point_data (Graph &g)
 For each vertex output the property string.
 
static std::string get_cell_data (const Graph &g)
 For each edge output the property string.
 
static std::string get_point_property_header (size_t prop)
 Given a Graph return the point data header for a typename T.
 
static std::string get_cell_property_header (size_t prop)
 Given a Graph return the cell data header for a typename T.
 
static std::string get_attributes_vertex ()
 Get the attributes name for vertex.
 
static std::string get_attributes_edge ()
 Get the attributes name for edge.
 

Member Function Documentation

◆ get_attributes_edge()

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

Get the attributes name for edge.

Returns
the edge attribute name

Definition at line 779 of file VTKWriter_dist_graph.hpp.

◆ get_attributes_vertex()

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

Get the attributes name for vertex.

Returns
the string containing the vertex attribute name

Definition at line 769 of file VTKWriter_dist_graph.hpp.

◆ get_cell_data()

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

For each edge output the property string.

Parameters
ggraph to print
Returns
the string containing cell-data

vertex node output string

Get a vertex iterator

Get an edge iterator

Definition at line 646 of file VTKWriter_dist_graph.hpp.

◆ get_cell_property_header()

template<typename Graph , unsigned int i>
static std::string dist_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
propproperty id
Returns
the string containing the header

edge node output string

Definition at line 720 of file VTKWriter_dist_graph.hpp.

◆ get_point_data()

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

For each vertex output the property string.

Parameters
ggraph to print
Returns
the string with the point data

vertex node output string

Get a vertex iterator

Definition at line 618 of file VTKWriter_dist_graph.hpp.

◆ get_point_property_header()

template<typename Graph , unsigned int i>
static std::string dist_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.

Parameters
propid of the property
Returns
the string containing the header

vertex node output string

Definition at line 687 of file VTKWriter_dist_graph.hpp.


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