SLIDE  3.0.0
A simulator for lithium-ion battery pack degradation
Loading...
Searching...
No Matches
Parameter.hpp
Go to the documentation of this file.
1/*
2 * Parameter.hpp
3 *
4 * A small class for named parameters.
5 * Created on: 04 Mar 2022
6 * Author(s): Jorn Reniers, Volkan Kumtepeli
7 */
8
9#pragma once
10
11#include <string_view>
12
14{
19
20 double value{};
21
22 constexpr static std::string_view name{};
23
24 auto &operator()()
25 {
26 return value;
27 }
28};
Definition: Parameter.hpp:14
auto & operator()()
Definition: Parameter.hpp:24
double value
Definition: Parameter.hpp:20
static constexpr std::string_view name
Name should be shared by all classes.
Definition: Parameter.hpp:22