GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
linkler_diff.h
1 #ifndef LINKLER_DIFF_H_
2 #define LINKLER_DIFF_H_
3 
4 #include "xmlparser.h"
5 #include "diff.h"
6 #include "linkler.h"
7 #include "module.h"
8 #include "swu.h"
9 #include "executable.h"
10 #include "dependency.h"
11 #include "defines.h"
12 #include <set>
13 
14 class LinklerDiff : virtual public Diff {
15 
16  public:
24  LinklerDiff(Linkler* current, Linkler* new_);
25 
29  LinklerDiff(LinklerDiff& linklerDiff);
30 
34  ~LinklerDiff();
35 
40 
44  void set_difference_swus();
45 
50 
55 
60  ModuleSet* introduced_modules();
61 
66  ModuleSet* removed_modules();
67 
72  SWUSet* introduced_swus();
73 
78  SWUSet* removed_swus();
79 
84  ModDependencySet* introduced_module_dependencies();
85 
90  ModDependencySet* removed_module_dependencies();
91 
96  SwuDependencySet* introduced_swu_dependencies();
97 
102  SwuDependencySet* removed_swu_dependencies();
103 
109  bool added(SWU* swu);
110 
116  bool added(Module* module);
117 
123  bool added(Dependency<SWU, SWU>* swu_dep);
124 
130  bool added(Dependency<Module, Module>* mod_dep);
131 
137  bool removed(SWU* swu);
138 
144  bool removed(Module* module);
145 
151  bool removed(Dependency<SWU, SWU>* swu_dep);
152 
158  bool removed(Dependency<Module, Module>* mod_dep);
159 
164  Linkler* merge();
165 
166  private:
168  Linkler* current_linkler_;
169 
171  Linkler* new_linkler_;
172 
174  ModuleSet introduced_modules_;
175 
177  ModuleSet removed_modules_;
178 
180  SWUSet introduced_swus_;
181 
183  SWUSet removed_swus_;
184 
186  ModDependencySet introduced_module_dependencies_;
187 
189  ModDependencySet removed_module_dependencies_;
190 
192  SwuDependencySet introduced_swu_dependencies_;
193 
195  SwuDependencySet removed_swu_dependencies_;
196 };
197 
198 #endif
LinklerDiff(Linkler *current, Linkler *new_)
Definition: linkler_diff.cc:23
SwuDependencySet * removed_swu_dependencies()
Definition: linkler_diff.cc:317
ModuleSet * removed_modules()
Definition: linkler_diff.cc:294
SWUSet * introduced_swus()
Definition: linkler_diff.cc:298
SwuDependencySet * introduced_swu_dependencies()
Definition: linkler_diff.cc:314
ModDependencySet * removed_module_dependencies()
Definition: linkler_diff.cc:310
SWUSet * removed_swus()
Definition: linkler_diff.cc:302
Forward declarations for functors.
Definition: defines.h:32
ModuleSet * introduced_modules()
Definition: linkler_diff.cc:290
Definition: linkler.h:20
~LinklerDiff()
Definition: linkler_diff.cc:43
void set_difference_swu_dependencies()
Definition: linkler_diff.cc:136
bool added(SWU *swu)
Definition: linkler_diff.cc:250
bool removed(SWU *swu)
Definition: linkler_diff.cc:270
Definition: linkler_diff.h:14
Definition: module.h:21
Definition: diff.h:8
void set_difference_modules()
Definition: linkler_diff.cc:63
Linkler * merge()
Definition: linkler_diff.cc:185
void set_difference_module_dependencies()
Definition: linkler_diff.cc:88
Definition: swu.h:27
void set_difference_swus()
Definition: linkler_diff.cc:76
ModDependencySet * introduced_module_dependencies()
Definition: linkler_diff.cc:306