Tree Compression with Top Trees Revisited
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TopDagDotGraphExporter< DataType > Struct Template Reference

Export a Top DAG as a DOT graph. More...

#include <DotGraphExporter.h>

Inheritance diagram for TopDagDotGraphExporter< DataType >:
Inheritance graph
[legend]
Collaboration diagram for TopDagDotGraphExporter< DataType >:
Collaboration graph
[legend]

Public Member Functions

void write (const TopDag< DataType > &dag, const string &filename)
 
- Public Member Functions inherited from DotGraphExporter< TopDag< DataType > >
void write (const TopDag< DataType > &tree, const string &filename, const int nodeId=0)
 

Protected Member Functions

void writeNode (std::ostream &out, const TopDag< DataType > &dag, const int nodeId)
 iteratively write the tree to an output stream More...
 

Protected Attributes

vector< bool > alreadyProcessed
 

Additional Inherited Members

- Static Public Member Functions inherited from DotGraphExporter< TopDag< DataType > >
static void drawSvg (const string &dotfile, const string &outfilename)
 

Detailed Description

template<typename DataType>
struct TopDagDotGraphExporter< DataType >

Export a Top DAG as a DOT graph.

Definition at line 92 of file DotGraphExporter.h.

Member Function Documentation

template<typename DataType >
void TopDagDotGraphExporter< DataType >::write ( const TopDag< DataType > &  dag,
const string &  filename 
)
inline

write a tree's dot graph to a file

Parameters
treethe tree to write
filenameoutput filename (path must exist)

Definition at line 96 of file DotGraphExporter.h.

template<typename DataType >
void TopDagDotGraphExporter< DataType >::writeNode ( std::ostream &  out,
const TopDag< DataType > &  dag,
const int  nodeId 
)
inlineprotectedvirtual

iteratively write the tree to an output stream

Implements DotGraphExporter< TopDag< DataType > >.

Definition at line 107 of file DotGraphExporter.h.

Member Data Documentation

template<typename DataType >
vector<bool> TopDagDotGraphExporter< DataType >::alreadyProcessed
protected

Definition at line 126 of file DotGraphExporter.h.


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