AutoPas  3.0.0
Loading...
Searching...
No Matches
EnergySensorOption.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <set>
10
12
13namespace autopas {
14
19class EnergySensorOption : public Option<EnergySensorOption> {
20 public:
24 enum Value {
33 };
34
38 EnergySensorOption() = default;
39
44 constexpr EnergySensorOption(Value option) : _value(option) {}
45
50 constexpr operator Value() const { return _value; }
51
56 static std::map<EnergySensorOption, std::string> getOptionNames() {
57 return {
60 };
61 };
62
63 private:
64 Value _value{Value(-1)};
65};
66
67} // namespace autopas
Class representing the different energy sensor options.
Definition: EnergySensorOption.h:19
constexpr EnergySensorOption(Value option)
Cosntructor with selected option.
Definition: EnergySensorOption.h:44
static std::map< EnergySensorOption, std::string > getOptionNames()
Provide a way to iterate over the options of EnergySensorOption.
Definition: EnergySensorOption.h:56
Value
Possible choices for energy sensor.
Definition: EnergySensorOption.h:24
@ likwid
Use LIKWID.
Definition: EnergySensorOption.h:28
@ rapl
Use RAPL.
Definition: EnergySensorOption.h:32
EnergySensorOption()=default
Cosntructor.
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32