ttg::Dot Class Reference
Inheritance diagram for ttg::Dot:
ttg::detail::Traverse

Documentation

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

Definition at line 13 of file dot.h.

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)
 

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 23 of file dot.h.

Member Function Documentation

◆ build_ttg_hierarchy()

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

Definition at line 44 of file dot.h.

◆ escape()

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

Definition at line 26 of file dot.h.

◆ 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 38 of file dot.h.

◆ 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.

◆ 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.

◆ ttfunc()

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

Implements ttg::detail::Traverse.

Definition at line 58 of file dot.h.


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