FireSTARR
Loading...
Searching...
No Matches
Score.h
1/* SPDX-License-Identifier: AGPL-3.0-or-later */
2#ifndef FS_SCORE_H
3#define FS_SCORE_H
4#include "stdafx.h"
5namespace fs
6{
10class Score
11{
12public:
17 [[nodiscard]] constexpr MathSize average() const noexcept { return average_; }
22 [[nodiscard]] constexpr MathSize grade() const noexcept { return grade_; }
27 [[nodiscard]] constexpr YearSize year() const noexcept { return year_; }
34 constexpr Score(const YearSize year, const MathSize average, const MathSize grade) noexcept
36 { }
37
38private:
42 MathSize average_;
46 MathSize grade_;
50 YearSize year_;
51};
52}
53#endif
The WeatherSHIELD score for a specific year.
Definition Score.h:11
constexpr YearSize year() const noexcept
Year this Score is for.
Definition Score.h:27
MathSize grade_
Grade for this year.
Definition Score.h:46
constexpr MathSize average() const noexcept
Average match percentage for the year.
Definition Score.h:17
constexpr Score(const YearSize year, const MathSize average, const MathSize grade) noexcept
Constructor.
Definition Score.h:34
MathSize average_
Average match percentage for the year.
Definition Score.h:42
constexpr MathSize grade() const noexcept
Grade for this year.
Definition Score.h:22
YearSize year_
Year this Score is for.
Definition Score.h:50