GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <swu_graph_builder.h>
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) | |
GraphType & | grapher () |
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) |
Linkler * | linkler () |
SWU * | get (std::string swu_name) |
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.
typedef Grapher<SWU*,Dependency<SWU,SWU>*,CompareSWUByName, CompareSWUDependency> SWUGraphBuilder::GraphType |
The type of grapher this builder creates
SWUGraphBuilder::SWUGraphBuilder | ( | Linkler * | l | ) |
The constructor takes a linkler to base grapher building on.
l | the linkler to use |
SWU * SWUGraphBuilder::get | ( | std::string | swu_name | ) |
|
virtual |
Add all SWUs found in the linkler to the grapher.
Implements GraphBuilder.
|
virtual |
Add edges for all dependencies of all SWUs found in the linkler to the grapher.
Implements GraphBuilder.
|
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.
|
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.
swu | name of the SWU to start from |
Implements GraphBuilder.
|
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.
swu | name of the SWU to start from |
Implements GraphBuilder.
|
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.
swu | name of the SWU to start from |
Implements GraphBuilder.
|
virtual |
Add a specific SWU (in the linkler) to the grapher object.
swu | name 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.