ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ttg::Dot Class Reference

Prints the graph to a std::string in the format understood by GraphViz's dot program. More...

#include <dot.h>

Inheritance diagram for ttg::Dot:
[legend]
Collaboration diagram for ttg::Dot:
[legend]

Public Member Functions

 Dot (bool disable_type=false)
 
std::string escape (const std::string &in)
 
std::string nodename (const TTBase *op)
 
void build_ttg_hierarchy (const TTBase *tt)
 
void ttfunc (TTBase *tt)
 
void infunc (TerminalBase *in)
 
void outfunc (TerminalBase *out)
 
void tree_down (int level, const TTBase *node, std::stringstream &buf)
 
template<typename... TTBasePtrs>
std::enable_if_t<(std::is_convertible_v< std::remove_const_t< std::remove_reference_t< TTBasePtrs > >, TTBase * > &&...), std::string > operator() (TTBasePtrs &&... ops)
 

Detailed Description

Prints the graph to a std::string in the format understood by GraphViz's dot program.

Definition at line 14 of file dot.h.

Constructor & Destructor Documentation

◆ Dot()

ttg::Dot::Dot ( bool  disable_type = false)
inline
Parameters
[in]disable_typedisable_type controls whether to embed types into the DOT output; set to true to reduce the amount of the output

Definition at line 24 of file dot.h.

Member Function Documentation

◆ build_ttg_hierarchy()

void ttg::Dot::build_ttg_hierarchy ( const TTBase tt)
inline

Definition at line 45 of file dot.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ escape()

std::string ttg::Dot::escape ( const std::string &  in)
inline

Definition at line 27 of file dot.h.

Here is the caller graph for this function:

◆ infunc()

void ttg::Dot::infunc ( TerminalBase in)
inlinevirtual

Implements ttg::detail::Traverse.

Definition at line 141 of file dot.h.

◆ nodename()

std::string ttg::Dot::nodename ( const TTBase op)
inline

Definition at line 39 of file dot.h.

Here is the caller graph for this function:

◆ operator()()

template<typename... TTBasePtrs>
std::enable_if_t<(std::is_convertible_v< std::remove_const_t< std::remove_reference_t< TTBasePtrs > >, TTBase * > &&...), std::string > ttg::Dot::operator() ( TTBasePtrs &&...  ops)
inline
Returns
string containing the graph specification in the format understood by GraphViz's dot program

Definition at line 173 of file dot.h.

Here is the call graph for this function:

◆ outfunc()

void ttg::Dot::outfunc ( TerminalBase out)
inlinevirtual

Implements ttg::detail::Traverse.

Definition at line 143 of file dot.h.

◆ tree_down()

void ttg::Dot::tree_down ( int  level,
const TTBase node,
std::stringstream &  buf 
)
inline

Definition at line 145 of file dot.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ttfunc()

void ttg::Dot::ttfunc ( TTBase tt)
inlinevirtual

Implements ttg::detail::Traverse.

Definition at line 59 of file dot.h.

Here is the call graph for this function:

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