GCC Code Coverage Report


Directory: ./
File: include/intersection.hpp
Date: 2026-12-03 12:28:13
Exec Total Coverage
Lines: 0 7 0.0%
Functions: 0 0 -%
Branches: 0 0 -%
Decisions: 0 0 -%

Line Branch Decision Exec Source
1 #ifndef INTERSECTION_HPP
2 #define INTERSECTION_HPP
3
4 #include "types.hpp"
5
6 class Intersection
7 // this object describes the intersection of one trajectory with another, from
8 // one side. since it is created twice for every intersection, it is by far the
9 // most memory-intensive object and should be kept as small as possible
10 {
11 public:
12
13 int occupancy;
14 Trajectory* other_trajectory;
15 IntersectionItr mirror;
16 #ifdef CROSS_SEV
17 OccupiedIntersection* occupied_list_ptr;
18 #endif
19 };
20
21 class PointAtEdge
22 {
23 public:
24
25 double x;
26 double y;
27 double z;
28
29 int next_element;
30
31 PointAtEdge(double x1, double y1, double z1, int n1)
32 ✗ {
33 ✗ x = x1;
34 ✗ y = y1;
35 ✗ z = z1;
36 ✗ next_element = n1;
37 }
38 };
39
40 #ifdef CROSS_SEV
41 class OccupiedIntersection: public CompactListItem<OccupiedIntersection>
42 {
43 public:
44
45 ✗ OccupiedIntersection(IntersectionItr is):
46 ✗ intersection_to_cut(is) {};
47 IntersectionItr intersection_to_cut;
48 };
49 #endif
50
51 #endif // INTERSECTION_HPP
52