STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Attributes
stapl::output_graph_to_file< OutputFunctor > Struct Template Reference

Work-function to print a native-view of the input graph to the given file. More...

Public Member Functions

 output_graph_to_file (std::string filename)
 
 output_graph_to_file (std::string filename, OutputFunctor f)
 
template<typename Vw >
result_type operator() (Vw const &v)
 

Public Types

typedef void result_type
 

Protected Attributes

std::string m_filename
 
OutputFunctor m_vertex_out_func
 

Detailed Description

template<typename OutputFunctor>
struct stapl::output_graph_to_file< OutputFunctor >

Work-function to print a native-view of the input graph to the given file.

Uses the user-provided output-function to print each vertex and its adjacencies.

Template Parameters
OutputFunctorThe functor used to print a vertex and its adjacencies.
Parameters
filenameThe name of the output file. If the name is an empty string, the graph is output to std::cout.

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