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
edge_prop< G > Struct Template Reference

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

#include <GraphMLWriter.hpp>

Public Member Functions

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

Data Fields

int cnt = 0
 
std::string & e_prop
 
std::string * attributes_names
 
int n_attr = 0
 

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 289 of file GraphMLWriter.hpp.

Constructor & Destructor Documentation

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
stubSFINAE, it basically check if G::E_type has properties names defined, if yes this constructor is selected over the other one

Definition at line 312 of file GraphMLWriter.hpp.

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
n_propnumber of properties

Definition at line 327 of file GraphMLWriter.hpp.

Member Function Documentation

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

It call the functor for each member.

Create an entry for the attribute

Definition at line 342 of file GraphMLWriter.hpp.


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