| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // Copyright (C) 2026 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 |
1/2✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
|
1 | Mesh() : _topology(), _geometry() {} |
| 18 | Mesh(Topology& topology, Geometry& geometry) : _topology(topology), _geometry(geometry) {} | ||
| 19 | 47 | Mesh(Topology&& topology, Geometry&& geometry) | |
| 20 | 141 | : _topology(std::move(topology)), _geometry(std::move(geometry)) {} | |
| 21 | |||
| 22 | Mesh(Mesh&&) = default; | ||
| 23 |
1/2✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
|
1 | Mesh(const Mesh&) = default; |
| 24 | Mesh& operator=(Mesh&&) = default; | ||
| 25 | Mesh& operator=(const Mesh&) = default; | ||
| 26 | 49 | ~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 |