1 #ifndef GRAPHTOOL_SWU_H_
2 #define GRAPHTOOL_SWU_H_
14 #include "executable.h"
33 SWU(
const std::string);
90 std::string
name()
const;
143 ExecutableSet executables_;
146 SwuDependencySet dependencies_;
149 SwuDependentSet dependents_;
156 std::map<Dependency<SWU,SWU>*, ModDependencySet > sub_dependencies_;
159 ModDependencySet module_dependencies_;
162 ModDependentSet module_dependents_;
167 void remove_all_dependencies();
169 void remove_all_dependents();
171 void remove_all_executables();
173 void remove_all_modules();
176 #endif // GRAPHTOOL_SWU_H_
bool add_dependent(Dependency< SWU, SWU > *, Dependency< Module, Module > *)
Definition: swu.cc:96
void update_file_count()
Function to update number of files in this swu.
Definition: swu.cc:193
void add_executable(Executable *executable)
Definition: swu.cc:176
bool add_dependency(Dependency< SWU, SWU > *, Dependency< Module, Module > *)
Definition: swu.cc:62
Forward declarations for functors.
Definition: defines.h:32
ModuleSet * modules()
Accessor for the set of modules.
Definition: swu.cc:155
ModDependentSet * module_dependents()
Accessor for the set of module dependents.
Definition: swu.cc:167
ModDependencySet sub_dependencies(Dependency< SWU, SWU > *dependency)
Definition: swu.cc:211
int remove_module(Module *)
Definition: swu.cc:181
bool remove_dependency(SWU *)
Definition: swu.cc:107
SwuDependencySet * dependencies()
Accessor for the set of dependencies.
Definition: swu.cc:143
std::string name() const
Accessor for name.
Definition: swu.cc:151
SwuDependentSet * dependents()
Accessor for the set of dependents.
Definition: swu.cc:147
void remove_from_datastructure()
Definition: swu.cc:18
void add_module(Module *)
Definition: swu.cc:171
int num_files()
accessor for the number of files in this swu
Definition: swu.cc:207
ExecutableSet * executables()
Accessor for the set of executables.
Definition: swu.cc:159
SWU(const std::string)
Definition: swu.cc:3
Executable class, defines an executable / run block.
Definition: executable.h:13
ModDependencySet * module_dependencies()
Accessor for the set of module dependencies.
Definition: swu.cc:163
~SWU()
Definition: swu.cc:8
Module * find_module(std::string)
Definition: swu.cc:134
bool remove_dependent(SWU *)
Definition: swu.cc:124