1 #ifndef GRAPHTOOL_DEFINES_H_
2 #define GRAPHTOOL_DEFINES_H_
9 void operator()(T *ptr){
17 template<
typename SetType>
21 Copier(SetType& st) : set(st) {
25 void operator()(T* original) {
26 T* copy =
new T(*original);
44 struct CompareModuleDependency:
public std::binary_function<const Dependency<Module, Module>&, const Dependency<Module, Module>&, bool> {
55 struct CompareSWUDependency:
public std::binary_function<const Dependency<SWU, SWU>&, const Dependency<SWU, SWU>&, bool> {
62 bool operator()(
const SWU* a,
const SWU* b)
const;
70 struct CompareDependencyByFile :
public std::binary_function<const Dependency<File, File>, const Dependency<File, File>, bool> {
77 struct CompareDependentByFile :
public std::binary_function<const Dependency<File, File>, const Dependency<File, File>, bool> {
84 bool operator()(
const File* a,
const File* b);
88 struct CompareExByName :
public std::binary_function<Executable*, Executable*, bool> {
95 typedef std::set<Module*, CompareModuleByName> ModuleSet;
100 typedef std::set<SWU*, CompareSWUByName> SWUSet;
107 typedef std::set<Executable*, CompareExByName> ExecutableSet;
Functor for comparing swu dependencies.
Definition: defines.h:55
Functor for comparing dependencies between Files.
Definition: defines.h:71
Functor for comparing names between SWUs.
Definition: defines.h:61
Forward declarations for functors.
Definition: defines.h:32
Functor for comparing names between Files.
Definition: defines.h:83
Functor for comparing names between modules.
Definition: defines.h:50
Executable class, defines an executable / run block.
Definition: executable.h:13
Functor for comparing names between Executables.
Definition: defines.h:88
Functor for comparing dependents between Files.
Definition: defines.h:77
Functor for comparing module dependencies.
Definition: defines.h:44