Tree Compression with Top Trees Revisited
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
DotGraphExporter< TreeType > Struct Template Referenceabstract

Base class for exporting various graphs (or trees) as DOT files. More...

#include <DotGraphExporter.h>

Public Member Functions

void write (const TreeType &tree, const string &filename, const int nodeId=0)
 

Static Public Member Functions

static void drawSvg (const string &dotfile, const string &outfilename)
 

Protected Member Functions

virtual void writeNode (std::ostream &, const TreeType &, const int)=0
 

Detailed Description

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.

Member Function Documentation

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
dotfilefilename of the dotfile
outfilenamefilename 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
treethe tree to write
filenameoutput 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: