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
13
struct
Parameter
14
{
19
20
double
value
{};
21
22
constexpr
static
std::string_view
name
{};
23
24
auto
&
operator()
()
25
{
26
return
value
;
27
}
28
};
Parameter
Definition:
Parameter.hpp:14
Parameter::operator()
auto & operator()()
Definition:
Parameter.hpp:24
Parameter::value
double value
Definition:
Parameter.hpp:20
Parameter::name
static constexpr std::string_view name
Name should be shared by all classes.
Definition:
Parameter.hpp:22
src
types
Parameter.hpp
Generated by
1.9.5