OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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...

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 396 of file VTKWriter_dist_graph.hpp.

#include <VTKWriter_dist_graph.hpp>

Static Public Member Functions

static std::string get_point_data (const Graph &g)
 For each vertex set the value.
 
static std::string get_cell_data (const Graph &g)
 For each edge set the value, set 1 on vertices, needed by vtk file format.
 
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<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.

Returns
the attribute name for the edge

Definition at line 589 of file VTKWriter_dist_graph.hpp.

◆ get_attributes_vertex()

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.

Returns
string with the attribute name

Definition at line 579 of file VTKWriter_dist_graph.hpp.

◆ get_cell_data()

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.

Parameters
ggraph to output
Returns
the cell-data string

vertex node output string

Get a vertex iterator

Get an edge iterator

Definition at line 437 of file VTKWriter_dist_graph.hpp.

◆ get_cell_property_header()

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.

Parameters
propproperty number
Returns
the cell string header

edge node output string

Definition at line 530 of file VTKWriter_dist_graph.hpp.

◆ get_point_data()

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.

Parameters
ggraph to output
Returns
get the point data string

vertex node output string

Get a vertex iterator

Definition at line 408 of file VTKWriter_dist_graph.hpp.

◆ get_point_property_header()

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.

Parameters
propproperty id
Returns
the string with the property header

vertex node output string

Definition at line 479 of file VTKWriter_dist_graph.hpp.


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