1 #ifndef GRAPHTOOL_DEPENDENCY_H
2 #define GRAPHTOOL_DEPENDENCY_H
11 template<
class T1,
class T2>
class Dependency {
21 is_absolute_ = is_absolute;
22 type_ = GraphTool::UNDEFINED;
29 to_->remove_dependent(from_);
30 from_->remove_dependency(to_);
104 GraphTool::MemType
type()
const {
123 if(type_ == GraphTool::LDM) {
125 }
else if (type_ == GraphTool::LPM) {
127 }
else if (type_ == GraphTool::LDM_LPM) {
146 mutable GraphTool::MemType type_;
void remove_from_datastructure()
Definition: dependency.h:28
const T2 * to_const() const
Definition: dependency.h:61
Forward declarations for functors.
Definition: defines.h:32
const T1 * from_const() const
Definition: dependency.h:53
T1 * from()
Definition: dependency.h:37
GraphTool::MemType type()
Definition: dependency.h:113
std::string type_string()
Definition: dependency.h:122
void set_absolute()
Definition: dependency.h:87
Dependency(T1 *from, T2 *to, bool is_absolute=false)
Definition: dependency.h:18
void set_type(GraphTool::MemType type) const
Definition: dependency.h:138
bool relative() const
Definition: dependency.h:79
bool absolute() const
Definition: dependency.h:70
GraphTool::MemType type() const
Definition: dependency.h:104
T2 * to()
Definition: dependency.h:45
void set_relative()
Definition: dependency.h:95