OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
edge_prop< G > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename G>
struct edge_prop< G >

this class is a functor for "for_each" algorithm

This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to create a string containing all the edge properties

Definition at line 312 of file GraphMLWriter.hpp.

#include <GraphMLWriter.hpp>

Public Member Functions

 edge_prop (std::string &e_prop, typename G::E_type::attributes &a_name)
 Constructor.
 
 edge_prop (std::string &e_prop)
 Constructor.
 
template<typename T >
void operator() (T &t)
 It call the functor for each member.
 

Data Fields

int cnt = 0
 Properties counter.
 
std::string & e_prop
 edge properties
 
std::string * attributes_names
 Attribute names.
 
int n_attr = 0
 Number of attributes name defined into the vertex.
 
bool to_destroy = false
 indicate if attributes_names is to destroy
 

Constructor & Destructor Documentation

◆ edge_prop() [1/2]

template<typename G >
edge_prop< G >::edge_prop ( std::string &  e_prop,
typename G::E_type::attributes &  a_name 
)
inline

Constructor.

Create an edge properties list

Parameters
e_propstd::string that is filled with the graph properties in the GraphML format
a_namestub SFINAE, it basically check if G::E_type has properties names defined, if yes this constructor is selected over the other one

Definition at line 338 of file GraphMLWriter.hpp.

◆ edge_prop() [2/2]

template<typename G >
edge_prop< G >::edge_prop ( std::string &  e_prop)
inline

Constructor.

Create an edge properties list

Parameters
e_propstd::string that is filled with the graph properties in the GraphML format

Definition at line 352 of file GraphMLWriter.hpp.

◆ ~edge_prop()

template<typename G >
edge_prop< G >::~edge_prop ( )
inline

Definition at line 366 of file GraphMLWriter.hpp.

Member Function Documentation

◆ operator()()

template<typename G >
template<typename T >
void edge_prop< G >::operator() ( T &  t)
inline

It call the functor for each member.

Parameters
teach member

Create an entry for the attribute

Definition at line 378 of file GraphMLWriter.hpp.

Field Documentation

◆ attributes_names

template<typename G >
std::string* edge_prop< G >::attributes_names

Attribute names.

Definition at line 321 of file GraphMLWriter.hpp.

◆ cnt

template<typename G >
int edge_prop< G >::cnt = 0

Properties counter.

Definition at line 315 of file GraphMLWriter.hpp.

◆ e_prop

template<typename G >
std::string& edge_prop< G >::e_prop

edge properties

Definition at line 318 of file GraphMLWriter.hpp.

◆ n_attr

template<typename G >
int edge_prop< G >::n_attr = 0

Number of attributes name defined into the vertex.

Definition at line 324 of file GraphMLWriter.hpp.

◆ to_destroy

template<typename G >
bool edge_prop< G >::to_destroy = false

indicate if attributes_names is to destroy

Definition at line 327 of file GraphMLWriter.hpp.


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