| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "golovanov_d_radix_merge/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <vector> | ||
| 4 | |||
| 5 | #include "../include/radix_sort.hpp" | ||
| 6 | #include "golovanov_d_radix_merge/common/include/common.hpp" | ||
| 7 | |||
| 8 | namespace golovanov_d_radix_merge { | ||
| 9 | |||
| 10 |
1/2✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
|
24 | GolovanovDRadixMergeSEQ::GolovanovDRadixMergeSEQ(const InType &in) { |
| 11 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 12 |
1/2✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
|
24 | GetInput() = in; |
| 13 | GetOutput() = {}; | ||
| 14 | 24 | } | |
| 15 | |||
| 16 | 24 | bool GolovanovDRadixMergeSEQ::ValidationImpl() { | |
| 17 | 24 | return !GetInput().empty(); | |
| 18 | } | ||
| 19 | |||
| 20 | 24 | bool GolovanovDRadixMergeSEQ::PreProcessingImpl() { | |
| 21 | 24 | return true; | |
| 22 | } | ||
| 23 | |||
| 24 | 24 | bool GolovanovDRadixMergeSEQ::RunImpl() { | |
| 25 | 24 | std::vector<double> input = GetInput(); | |
| 26 |
1/2✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
|
24 | RadixSort::Sort(input); |
| 27 |
1/2✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
|
24 | GetOutput() = input; |
| 28 | 24 | return true; | |
| 29 | } | ||
| 30 | |||
| 31 | 24 | bool GolovanovDRadixMergeSEQ::PostProcessingImpl() { | |
| 32 | 24 | return true; | |
| 33 | } | ||
| 34 | |||
| 35 | } // namespace golovanov_d_radix_merge | ||
| 36 |