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

#include <VTKWriter_graph.hpp>

Static Public Member Functions

static std::string get_point_data (const Graph &g)
 Get the vtk point data section for a graph g.
 
static std::string get_cell_data (const Graph &g)
 Get the cell data section for a graph g.
 
static std::string get_point_property_header (size_t prop)
 Return the point header for the property prop.
 
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 the property i (template parameter)
 
static std::string get_attributes_edge ()
 Get the attributes name for edge property i (template parameter)
 

Member Function Documentation

◆ get_attributes_edge()

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 property i (template parameter)

Returns
edge attribute name

Definition at line 592 of file VTKWriter_graph.hpp.

◆ get_attributes_vertex()

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 the property i (template parameter)

Returns
vertex attribute name

Definition at line 582 of file VTKWriter_graph.hpp.

◆ get_cell_data()

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

Get the cell data section for a graph g.

Parameters
ggraph
Returns
the cell data section

vertex node output string

Get a vertex iterator

Get an edge iterator

Definition at line 439 of file VTKWriter_graph.hpp.

◆ get_cell_property_header()

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.

Parameters
propproperty id
Returns
the string with the cell property header

edge node output string

Definition at line 533 of file VTKWriter_graph.hpp.

◆ get_point_data()

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

Get the vtk point data section for a graph g.

Parameters
ggraph
Returns
point data section string

vertex node output string

Get a vertex iterator

Definition at line 411 of file VTKWriter_graph.hpp.

◆ get_point_property_header()

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

Return the point header for the property prop.

Parameters
propproperty to write
Returns
a string containing the header of the properties

Definition at line 482 of file VTKWriter_graph.hpp.


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