ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SDG::DataDependenceGraph Class Reference

#include <newDDG.h>

Inheritance diagram for SDG::DataDependenceGraph:
Collaboration diagram for SDG::DataDependenceGraph:

Public Types

typedef boost::graph_traits
< DataDependenceGraph >
::vertex_descriptor 
Vertex
 
typedef boost::graph_traits
< DataDependenceGraph >
::edge_descriptor 
Edge
 

Public Member Functions

 DataDependenceGraph ()
 The default constructor. More...
 
 DataDependenceGraph (const StaticCFG::ControlFlowGraph &cfg)
 The constructor building the DDG from a CFG. More...
 
void build (const StaticCFG::ControlFlowGraph &cfg)
 Build the DDG from the given CFG. More...
 
void toDot (const std::string &filename) const
 Write the DDG to a dot file. More...
 

Protected Member Functions

void writeGraphNode (std::ostream &out, const Vertex &node) const
 This function helps to write the DOT file for vertices. More...
 
void writeGraphEdge (std::ostream &out, const Edge &edge) const
 This function helps to write the DOT file for edges. More...
 

Detailed Description

Definition at line 23 of file newDDG.h.

Member Typedef Documentation

typedef boost::graph_traits<DataDependenceGraph>::vertex_descriptor SDG::DataDependenceGraph::Vertex

Definition at line 27 of file newDDG.h.

typedef boost::graph_traits<DataDependenceGraph>::edge_descriptor SDG::DataDependenceGraph::Edge

Definition at line 28 of file newDDG.h.

Constructor & Destructor Documentation

SDG::DataDependenceGraph::DataDependenceGraph ( )
inline

The default constructor.

Definition at line 31 of file newDDG.h.

SDG::DataDependenceGraph::DataDependenceGraph ( const StaticCFG::ControlFlowGraph cfg)
inline

The constructor building the DDG from a CFG.

Definition at line 34 of file newDDG.h.

References build().

Member Function Documentation

void SDG::DataDependenceGraph::build ( const StaticCFG::ControlFlowGraph cfg)

Build the DDG from the given CFG.

Referenced by DataDependenceGraph().

void SDG::DataDependenceGraph::toDot ( const std::string &  filename) const

Write the DDG to a dot file.

void SDG::DataDependenceGraph::writeGraphNode ( std::ostream &  out,
const Vertex node 
) const
protected

This function helps to write the DOT file for vertices.

void SDG::DataDependenceGraph::writeGraphEdge ( std::ostream &  out,
const Edge edge 
) const
protected

This function helps to write the DOT file for edges.


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