GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Classes | Public Types | Public Member Functions | List of all members
SWUGraphBuilder Class Reference

#include <swu_graph_builder.h>

Inheritance diagram for SWUGraphBuilder:
Inheritance graph
[legend]
Collaboration diagram for SWUGraphBuilder:
Collaboration graph
[legend]

Classes

class  AddDependencies
 
class  AddDependents
 
class  AddSWU
 
class  GraphAdder
 

Public Types

typedef Grapher< SWU
*, Dependency< SWU, SWU >
*, CompareSWUByName,
CompareSWUDependency
GraphType
 

Public Member Functions

 SWUGraphBuilder (Linkler *l)
 
GraphTypegrapher ()
 
void graph_all ()
 
void graph_all_dependencies ()
 
void graph_all_dependents ()
 
void graph_single (std::string swu_name)
 
void graph_recursively (std::string swu)
 
void graph_dependencies (std::string swu)
 
void graph_dependents (std::string swu)
 
Linklerlinkler ()
 
SWUget (std::string swu_name)
 

Detailed Description

SWUGraphBuilder builds an SWU-grapher objects given a linkler. The grapher object is basically a directed graph with vertices and edges, representing SWUs and dependencies in the linkler.

Member Typedef Documentation

The type of grapher this builder creates

Constructor & Destructor Documentation

SWUGraphBuilder::SWUGraphBuilder ( Linkler l)

The constructor takes a linkler to base grapher building on.

Parameters
lthe linkler to use

Member Function Documentation

SWU * SWUGraphBuilder::get ( std::string  swu_name)

Returns a pointer to an SWU in the linkler based on its name.

Parameters
swu_namename of the SWU to access
void SWUGraphBuilder::graph_all ( )
virtual

Add all SWUs found in the linkler to the grapher.

Implements GraphBuilder.

void SWUGraphBuilder::graph_all_dependencies ( )
virtual

Add edges for all dependencies of all SWUs found in the linkler to the grapher.

Implements GraphBuilder.

void SWUGraphBuilder::graph_all_dependents ( )
virtual

Add edges for all dependents of all SWUs found in the linkler to the grapher. Note, if you run this together with graph_all_dependencies, you will get two edges for each dependent in the directed graph

Implements GraphBuilder.

void SWUGraphBuilder::graph_dependencies ( std::string  swu)
virtual

Starting from a given SWU graph all dependencies for that SWU. If any of the dependent on SWUs aren't already in the grapher object, they will be added.

Parameters
swuname of the SWU to start from

Implements GraphBuilder.

void SWUGraphBuilder::graph_dependents ( std::string  swu)
virtual

Starting from a given SWU graph all dependents for that SWU. If any of the SWUs which depend on the given one aren't already in the grapher object they will be added.

Parameters
swuname of the SWU to start from

Implements GraphBuilder.

void SWUGraphBuilder::graph_recursively ( std::string  swu)
virtual

Starting from a given SWU graph all dependencies and dependents for that SWU, and every SWU reachable through dependencies. Recursively do the same for all SWUs reachable through dependencies.

Parameters
swuname of the SWU to start from

Implements GraphBuilder.

void SWUGraphBuilder::graph_single ( std::string  swu_name)
virtual

Add a specific SWU (in the linkler) to the grapher object.

Parameters
swuname of the SWU to be added

Implements GraphBuilder.

SWUGraphBuilder::GraphType & SWUGraphBuilder::grapher ( )

Access the grapher object as it has been built so far.

Linkler * SWUGraphBuilder::linkler ( )

Returns the linkler used for generating the grapher.


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