GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <swu.h>
Public Member Functions | |
SWU (const std::string) | |
~SWU () | |
void | remove_from_datastructure () |
bool | add_dependency (Dependency< SWU, SWU > *, Dependency< Module, Module > *) |
bool | remove_dependency (SWU *) |
void | add_module (Module *) |
void | add_executable (Executable *executable) |
int | remove_module (Module *) |
int | remove_executable (Executable *) |
Module * | find_module (std::string) |
std::string | name () const |
Accessor for name. | |
ModuleSet * | modules () |
Accessor for the set of modules. | |
SwuDependencySet * | dependencies () |
Accessor for the set of dependencies. | |
SwuDependentSet * | dependents () |
Accessor for the set of dependents. | |
ExecutableSet * | executables () |
Accessor for the set of executables. | |
ModDependencySet * | module_dependencies () |
Accessor for the set of module dependencies. | |
ModDependentSet * | module_dependents () |
Accessor for the set of module dependents. | |
void | update_file_count () |
Function to update number of files in this swu. | |
int | num_files () |
accessor for the number of files in this swu | |
ModDependencySet | sub_dependencies (Dependency< SWU, SWU > *dependency) |
Protected Member Functions | |
bool | add_dependent (Dependency< SWU, SWU > *, Dependency< Module, Module > *) |
bool | remove_dependent (SWU *) |
SWU class, represents a SWU (/Software Unit).
Used for storing sets of modules (/Load Blocks) and executables (/Run Blocks). The class also stores SWU to SWU dependency information created by the underlying modules.
SWU::SWU | ( | const std::string | s_name | ) |
Constructor that takes a name as input.
string | s_name name of the swu. |
SWU::~SWU | ( | ) |
Destructor
bool SWU::add_dependency | ( | Dependency< SWU, SWU > * | swu_dep, |
Dependency< Module, Module > * | mod_dep | ||
) |
Adds a dependency to the current swu
swu | which swu the current swu have a dependency to |
type | which type of dependency, absolute or relative |
|
protected |
Adds a dependent to the current swu
swu | which swu the current swu have a dependent from |
type | which type of dependent, absolute or relative |
void SWU::add_executable | ( | Executable * | executable | ) |
Adds an executable to the current swu
executable | module to be added. |
void SWU::add_module | ( | Module * | m | ) |
Adds a module to the current swu
module | module to be added. |
Module * SWU::find_module | ( | std::string | m_name | ) |
Search for a module by its name
m_name | the module name to search for |
bool SWU::remove_dependency | ( | SWU * | swu | ) |
Removes a dependency from the current swu
swu | which swu dependency to remove |
|
protected |
Removes a dependent from the current swu
swu | which swu dependent to remove |
void SWU::remove_from_datastructure | ( | ) |
int SWU::remove_module | ( | Module * | m | ) |
Removes a module from the current swu
module | module to be removed. |
ModDependencySet SWU::sub_dependencies | ( | Dependency< SWU, SWU > * | dependency | ) |
Get all sub-dependencies to a given dependency. This includes both to and from dependencies If the dependency doesn't have sub-dependencies an empty set will be returned