| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "dolov_v_torus_topology/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <utility> | ||
| 4 | #include <vector> | ||
| 5 | |||
| 6 | #include "dolov_v_torus_topology/common/include/common.hpp" | ||
| 7 | |||
| 8 | namespace dolov_v_torus_topology { | ||
| 9 | |||
| 10 | 56 | DolovVTorusTopologySEQ::DolovVTorusTopologySEQ(InType in) : internal_input_(std::move(in)) { | |
| 11 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 12 | 56 | } | |
| 13 | |||
| 14 | 56 | bool DolovVTorusTopologySEQ::ValidationImpl() { | |
| 15 | 56 | return true; | |
| 16 | } | ||
| 17 | |||
| 18 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 56 times.
|
56 | bool DolovVTorusTopologySEQ::PreProcessingImpl() { |
| 19 | internal_output_.route.clear(); | ||
| 20 | internal_output_.received_message.clear(); | ||
| 21 | 56 | return true; | |
| 22 | } | ||
| 23 | |||
| 24 | 56 | bool DolovVTorusTopologySEQ::RunImpl() { | |
| 25 | 56 | internal_output_.received_message = internal_input_.message; | |
| 26 | 56 | internal_output_.route = {internal_input_.sender_rank, internal_input_.receiver_rank}; | |
| 27 | |||
| 28 | 56 | return true; | |
| 29 | } | ||
| 30 | |||
| 31 | 56 | bool DolovVTorusTopologySEQ::PostProcessingImpl() { | |
| 32 | GetOutput() = internal_output_; | ||
| 33 | 56 | return true; | |
| 34 | } | ||
| 35 | |||
| 36 | } // namespace dolov_v_torus_topology | ||
| 37 |