8 #ifndef GRAPHTOOL_MODULE_H_ 
    9 #define GRAPHTOOL_MODULE_H_ 
   13 #include "dependency.h" 
   39     std::string 
name() 
const;
 
   59     std::set<std::string>* files();
 
  104     GraphTool::MemType 
type();
 
  123     GraphTool::MemType type_;
 
  126     int num_external_dependencies_;
 
  132     ModDependencySet dependencies_;
 
  135     ModDependentSet dependents_;
 
  138     std::set<std::string> files_;
 
bool has_external_dependents()
returns whether the number of external dependents is > 0 or not. 
Definition: module.cc:55
ModDependencySet * dependencies()
Definition: module.cc:128
bool remove_dependency(Module *m)
Definition: module.cc:88
void remove_from_datastructure()
Definition: module.cc:21
Forward declarations for functors. 
Definition: defines.h:32
~Module()
Destructor. 
Definition: module.cc:14
ModDependentSet * dependents()
Definition: module.cc:132
void set_type(GraphTool::MemType type)
Set the memory type of this module. 
Definition: module.cc:47
bool remove_external_dependent()
Removes one external dependent from this module. 
Definition: module.cc:103
bool add_dependency(Dependency< Module, Module > *mod_dep)
Definition: module.cc:63
GraphTool::MemType type()
Getter for memory type of this module. 
Definition: module.cc:51
void remove_file(std::string file)
Definition: module.cc:116
void add_external_dependent()
Adds an external dependency to this module. Is currently only a counter of how many external dependen...
Definition: module.cc:76
void set_swu(SWU *s)
Definition: module.cc:41
std::string name() const 
Definition: module.cc:120
bool remove_dependent(Module *)
Definition: module.cc:80
Module(std::string name)
Constructor. 
Definition: module.cc:7
SWU * swu()
Definition: module.cc:124
bool add_dependent(Dependency< Module, Module > *)
Definition: module.cc:59
void add_file(std::string file)
Definition: module.cc:112