File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,11 @@ private:
112
112
113
113
void clear_all_empty_vertices ();
114
114
115
- GroupedDependencyGraph () = default ;
116
-
117
115
public:
118
116
// TODO: This should be a const reference, but I don't know how to get immutable access to the reaction graph
119
117
// properties...
120
118
GroupedDependencyGraph (ReactionDependencyGraph& reactionGraph);
119
+ GroupedDependencyGraph () = default ;
121
120
122
121
void export_graphviz (const std::string& file_name);
123
122
Original file line number Diff line number Diff line change 13
13
#include < string>
14
14
#include < vector>
15
15
16
+ #include " reactor-cpp/dependency_graph.hh"
16
17
#include " reactor.hh"
17
18
#include " scheduler.hh"
18
19
@@ -42,6 +43,8 @@ private:
42
43
Phase phase_{Phase::Construction};
43
44
TimePoint start_time_{};
44
45
46
+ GroupedDependencyGraph grouped_graph_{};
47
+
45
48
void build_dependency_graph (Reactor* reactor);
46
49
void calculate_indexes ();
47
50
@@ -83,6 +86,8 @@ public:
83
86
[[nodiscard]] auto fast_fwd_execution () const noexcept -> bool { return fast_fwd_execution_; }
84
87
[[nodiscard]] auto run_forever () const noexcept -> bool { return run_forever_; }
85
88
[[nodiscard]] auto max_reaction_index () const noexcept -> unsigned int { return max_reaction_index_; }
89
+
90
+ [[nodiscard]] auto grouped_graph () const noexcept -> const GroupedDependencyGraph& { return grouped_graph_; }
86
91
};
87
92
} // namespace reactor
88
93
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ void Environment::assemble() {
64
64
65
65
reduced_grouped_graph.group_chains ();
66
66
reduced_grouped_graph.export_graphviz (" grouped_chains_graph.dot" );
67
+
68
+ this ->grouped_graph_ = reduced_grouped_graph;
67
69
}
68
70
69
71
void Environment::build_dependency_graph (Reactor* reactor) { // NOLINT
You can’t perform that action at this time.
0 commit comments