GCC Code Coverage Report


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

Line Branch Decision Exec Source
1 #ifndef SEGMENT_HPP
2 #define SEGMENT_HPP
3
4 #include "types.hpp"
5 #include "trajectory.hpp"
6
7 class Segment: public DLBaseItem<Segment>
8 {
9 public:
10
11 Microtubule* mt;
12 Trajectory* const trajectory;
13 TrjSegmentTag trajectory_tag;
14 double nucleation_time;
15
16 // -+ direction with respect to trajectory orientation
17 Direction dir;
18 double start;
19 double end;
20 IntersectionItr start_itr;
21 IntersectionItr end_itr;
22
23 // constructs a segment as part of a microtubule at a specified vector
24 // location
25 Segment(Microtubule*, TrajectoryVector&);
26
27 ~Segment();
28
29 ✗ double length() { return std::abs(end - start); }
30
31 bool is_last_in_mt();
32 bool is_first_in_mt();
33 bool crosses_intersection(IntersectionItr& is);
34 };
35
36 #endif // SEGMENT_HPP
37