GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
executable.h
1 // An executable is a memory on a specific DSP. An executable contains a number of modules.
2 // This class has a set of modules which are to be placed/are placed on this DSP.
3 
4 #ifndef GRAPHTOOL_EXECUTABLE_H_
5 #define GRAPHTOOL_EXECUTABLE_H_
6 
7 #include <string>
8 #include <set>
9 #include "module.h"
10 #include "defines.h"
11 
13 class Executable {
14  public:
16  Executable(const std::string, const int);
17  ~Executable();
18 
22 
24  ModuleSet* modules();
25 
27  SWUSet* swus();
28 
30  bool add_module(Module*);
31 
33  int remove_module(Module*);
34 
36  bool add_swu(SWU*);
37 
39  int remove_swu(SWU*);
40 
42  bool add_sub_swu(SWU*);
43 
45  SWU* find_swu(std::string name);
46 
48  Module* find_module(std::string name);
49 
51  std::string name() const;
52  void set_name(const std::string);
53 
54  int esp_id() const;
55  void set_esp_id(const int);
56  private:
58  ModuleSet modules_;
59 
61  SWUSet swus_;
62 
64  int esp_id_;
65 
67  std::string name_;
68 
71 };
72 
73 #endif
bool add_module(Module *)
Adds a module to this executable.
Definition: executable.cc:33
std::string name() const
Get & Set methods for the properties.
Definition: executable.cc:65
Module * find_module(std::string name)
Find a given module by its name.
Definition: executable.cc:55
void remove_from_datastructure()
Definition: executable.cc:17
bool add_swu(SWU *)
Adds a swu to this executable.
Definition: executable.cc:41
Definition: module.h:21
int remove_swu(SWU *)
Removes a swu from this executable, returns 1 if the swu was removed, 0 otherwise.
Definition: executable.cc:45
Executable(const std::string, const int)
Constructor & Destructor.
Definition: executable.cc:7
Definition: swu.h:27
int remove_module(Module *)
Removes a module from this executable, returns 1 if the module was removed, 0 otherwise.
Definition: executable.cc:37
Executable class, defines an executable / run block.
Definition: executable.h:13
bool add_sub_swu(SWU *)
Adds a swu to the subset of swus for this executable.
ModuleSet * modules()
Get the set of modules.
Definition: executable.cc:25
SWUSet * swus()
Get the set of SWUs.
Definition: executable.cc:29
SWU * find_swu(std::string name)
Find a given SWU by its name.