GCC Code Coverage Report


Directory: ./
File: tasks/orehov_n_jarvis_pass_seq/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 1 5 20.0%
Functions: 0 0 -%
Branches: 0 32 0.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <cmath>
4 #include <vector>
5
6 #include "task/include/task.hpp"
7
8 namespace orehov_n_jarvis_pass_seq {
9
10 struct Point {
11 double x;
12 double y;
13 144 explicit Point(double x = 0, double y = 0) : x(x), y(y) {}
14 bool operator==(const Point &r) const {
15 return ((std::abs(x - r.x) < 0.0001) && (std::abs(y - r.y) < 0.0001));
16 }
17 bool operator<(const Point &other) const {
18 if (x != other.x) {
19 return x < other.x;
20 }
21 return y < other.y;
22 }
23 };
24
25 using InType = std::vector<Point>;
26 using OutType = std::vector<Point>;
27 using TestType = int;
28 using BaseTask = ppc::task::Task<InType, OutType>;
29
30 } // namespace orehov_n_jarvis_pass_seq
31