| 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 | #include "oiseau/mesh/geometry.hpp" | ||
| 8 | |||
| 9 | #include <cstddef> | ||
| 10 | #include <span> | ||
| 11 | #include <utility> | ||
| 12 | #include <vector> | ||
| 13 | |||
| 14 | using namespace oiseau::mesh; | ||
| 15 | |||
| 16 | 1 | Geometry::Geometry() = default; | |
| 17 | 99 | Geometry::~Geometry() = default; | |
| 18 | ✗ | std::span<double> Geometry::x() { return m_x; }; | |
| 19 | 783 | std::span<const double> Geometry::x() const { return m_x; }; | |
| 20 | ✗ | std::span<double> Geometry::x_at(std::size_t pos) { return {&m_x[pos * m_dim], m_dim}; }; | |
| 21 | 100 | Geometry::Geometry(std::vector<double>&& x, unsigned dim) : m_x(std::move(x)), m_dim(dim) {}; | |
| 22 | 2351 | unsigned Geometry::dim() const { return m_dim; }; | |
| 23 |