Base class for exporting various graphs (or trees) as DOT files.
More...
#include <DotGraphExporter.h>
|
void | write (const TreeType &tree, const string &filename, const int nodeId=0) |
|
|
static void | drawSvg (const string &dotfile, const string &outfilename) |
|
|
virtual void | writeNode (std::ostream &, const TreeType &, const int)=0 |
|
template<typename TreeType>
struct DotGraphExporter< TreeType >
Base class for exporting various graphs (or trees) as DOT files.
Definition at line 16 of file DotGraphExporter.h.
template<typename TreeType>
static void DotGraphExporter< TreeType >::drawSvg |
( |
const string & |
dotfile, |
|
|
const string & |
outfilename |
|
) |
| |
|
inlinestatic |
plot a dotfile to svg using the utterly unsafe system() function
- Parameters
-
dotfile | filename of the dotfile |
outfilename | filename of the svg file to be generated |
Definition at line 32 of file DotGraphExporter.h.
template<typename TreeType>
void DotGraphExporter< TreeType >::write |
( |
const TreeType & |
tree, |
|
|
const string & |
filename, |
|
|
const int |
nodeId = 0 |
|
) |
| |
|
inline |
write a tree's dot graph to a file
- Parameters
-
tree | the tree to write |
filename | output filename (path must exist) |
Definition at line 20 of file DotGraphExporter.h.
template<typename TreeType>
virtual void DotGraphExporter< TreeType >::writeNode |
( |
std::ostream & |
, |
|
|
const TreeType & |
, |
|
|
const int |
|
|
) |
| |
|
protectedpure virtual |
The documentation for this struct was generated from the following file: