GCC Code Coverage Report


Directory: src/oiseau/
File: src/oiseau/mesh/mesh.hpp
Date: 2025-05-24 01:28:39
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (C) 2025 Tiago V. L. Amorim (@tiagovla)
2 //
3 // This file is part of oiseau (https://github.com/tiagovla/oiseau)
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6
7 #pragma once
8
9 #include <utility>
10
11 #include "oiseau/mesh/geometry.hpp"
12 #include "oiseau/mesh/topology.hpp"
13
14 namespace oiseau::mesh {
15 class Mesh {
16 public:
17 Mesh() : _topology(), _geometry() {}
18 Mesh(Topology &topology, Geometry &geometry) : _topology(topology), _geometry(geometry) {}
19 2 Mesh(Topology &&topology, Geometry &&geometry)
20 2 : _topology(std::move(topology)), _geometry(std::move(geometry)) {}
21
22 Mesh(Mesh &&) = default;
23 Mesh(const Mesh &) = default;
24 Mesh &operator=(Mesh &&) = default;
25 Mesh &operator=(const Mesh &) = default;
26 2 ~Mesh() = default;
27
28 Topology &topology();
29 const Topology &topology() const;
30 Geometry &geometry();
31 const Geometry &geometry() const;
32
33 private:
34 Topology _topology;
35 Geometry _geometry;
36 };
37
38 } // namespace oiseau::mesh
39