File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ public:
7878 auto name () -> const std::string& { return name_; }
7979
8080 // this method draw a connection between two graph elements with some properties
81- void draw_connection (BasePort& source, BasePort& sink, ConnectionProperties properties);
81+ template <class T > void draw_connection (Port<T>& source, Port<T>& sink, ConnectionProperties properties) {
82+ this ->draw_connection (&source, &sink, properties);
83+ }
8284 void draw_connection (BasePort* source, BasePort* sink, ConnectionProperties properties);
8385
8486 void optimize ();
Original file line number Diff line number Diff line change @@ -74,10 +74,6 @@ void recursive_assemble(Reactor* container) { // NOLINT
7474 }
7575}
7676
77- void Environment::draw_connection (BasePort& source, BasePort& sink, ConnectionProperties properties) {
78- this ->draw_connection (&source, &sink, properties);
79- }
80-
8177void Environment::draw_connection (BasePort* source, BasePort* sink, ConnectionProperties properties) {
8278 if (top_environment_ == nullptr || top_environment_ == this ) {
8379 log::Debug () << " drawing connection: " << source << " --> " << sink;
You can’t perform that action at this time.
0 commit comments