GCC Code Coverage Report


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

Line Branch Decision Exec Source
1 #ifndef GEOMETRY_HPP
2 #define GEOMETRY_HPP
3
4 #include "types.hpp"
5 #include "surface.hpp"
6 #include "parameters.hpp"
7 #include "trajectory.hpp"
8 #include "linalg.hpp"
9
10 class Geometry
11 // virtual base class for the various types of geometries
12 {
13 friend class System;
14
15 public:
16
17 // const GeometryType type;
18 double area;
19 double areain_mesh;
20 System* const system;
21
22 std::vector<ElementList> ppb_edge_list;
23 std::vector<Vertices> global_vertex;
24
25 double area_ppb;
26 std::vector<Vertices> ppb;
27
28 double patch_area[3];
29 std::vector<int> regions_index[3];
30
31 int element_max;
32 Eigen::Vector3d object_cm, object_pa, nucleous_position;
33 std::vector<Region*> regions;
34
35 ✗ Geometry(System* s, double a):
36 ✗ area(a),
37 ✗ system(s)
38 {
39
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
✗ for (int i = 0; i < 3; i++)
40 {
41 ✗ patch_area[i] = 0.0;
42 }
43 };
44
45 // virtual destructor implies virtual class
46 ✗ virtual ~Geometry() { return; };
47
48 bool integrity_check();
49 double optical_length();
50 int trajectory_count();
51 void call_translator(SurfaceVector&, int, int);
52
53 virtual void get_order_parameters(OrderParameters&) = 0;
54 virtual void output_snapshot(std::ostream&) = 0;
55 virtual void output_order_heat_map(std::ostream&, std::vector<double>&, std::vector<Eigen::Vector3d>&) = 0;
56
57 SurfaceVector random_surface_vector();
58 TrajectoryVector create_trajectory(const SurfaceVector&);
59
60 // creates a trajectory at a given surface vector and returns a trajectory
61 // vector
62 TrajectoryVector create_and_link_trajectory(const SurfaceVector&, Trajectory*, Direction, double, double);
63
64 // only called by Trajectory (friend class)
65
66 private:
67
68 friend TrajectoryVector Trajectory::next_trajectory(Direction);
69 virtual TrajectoryVector extend_trajectory(Trajectory*, Direction) = 0;
70 };
71
72 class TriMeshGeometry: public Geometry
73 {
74 public:
75
76 TriMeshGeometry(System*);
77 TrajectoryVector extend_trajectory(Trajectory*, Direction);
78 void get_order_parameters(OrderParameters&);
79 void output_snapshot(std::ostream&);
80 void output_order_heat_map(std::ostream&, std::vector<double>&, std::vector<Eigen::Vector3d>&);
81 };
82
83 #endif // GEOMETRY_HPP
84