AutoPas  3.0.0
Loading...
Searching...
No Matches
SelectorStrategyOption.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <vector>
10
12
13namespace autopas {
14inline namespace options {
18class SelectorStrategyOption : public Option<SelectorStrategyOption> {
19 public:
23 enum Value {
36 };
37
42
47 constexpr SelectorStrategyOption(Value option) : _value(option) {}
48
53 constexpr operator Value() const { return _value; }
54
59 static std::set<SelectorStrategyOption> getDiscouragedOptions() { return {}; }
60
65 static std::map<SelectorStrategyOption, std::string> getOptionNames() {
66 return {
67 {SelectorStrategyOption::fastestAbs, "Fastest-Absolute-Value"},
68 {SelectorStrategyOption::fastestMean, "Fastest-Mean-Value"},
69 {SelectorStrategyOption::fastestMedian, "Fastest-Median-Value"},
70 };
71 };
72
73 private:
74 Value _value{Value(-1)};
75};
76} // namespace options
77} // namespace autopas
Base class for autopas options.
Definition: Option.h:25
Class representing the choices for timing samples to be aggregated.
Definition: SelectorStrategyOption.h:18
SelectorStrategyOption()=default
Constructor.
static std::set< SelectorStrategyOption > getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
Definition: SelectorStrategyOption.h:59
Value
Possible choices for the employed selectors.
Definition: SelectorStrategyOption.h:23
@ fastestMean
Fastest mean value.
Definition: SelectorStrategyOption.h:31
@ fastestAbs
Fastest absolute value.
Definition: SelectorStrategyOption.h:27
@ fastestMedian
Fastest median value.
Definition: SelectorStrategyOption.h:35
constexpr SelectorStrategyOption(Value option)
Constructor from value.
Definition: SelectorStrategyOption.h:47
static std::map< SelectorStrategyOption, std::string > getOptionNames()
Provides a way to iterate over the possible choices of TraversalOption.
Definition: SelectorStrategyOption.h:65
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32