Cerata
A library to generate structural hardware designs
cerata::dot::Grapher Struct Reference

Dot graph output generator. More...

#include <dot.h>

+ Collaboration diagram for cerata::dot::Grapher:

Public Member Functions

 Grapher (Style style)
 Grapher constructor.
 
std::string GenEdges (const Graph &graph, int level=0)
 Generate edges.
 
std::string GenNode (const Node &n, int level=0)
 Generate a node.
 
std::string GenNodes (const Graph &graph, Node::NodeID id, int level=0, bool no_group=false)
 Generate nodes.
 
std::string GenGraph (const Graph &graph, int level=0)
 Generate a graph.
 
std::string GenFile (const Graph &graph, const std::string &path)
 Generate a DOT file.
 

Static Public Member Functions

static std::string GenExpr (const Node &exp, const std::string &prefix="", int level=0)
 Generate expressions.
 

Public Attributes

Style style
 The style.
 
std::vector< Edge * > drawn_edges = {}
 Edges that were already drawn.
 

Detailed Description

Dot graph output generator.

Definition at line 31 of file dot.h.


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