AutoPas  3.0.0
Loading...
Searching...
No Matches
LoadEstimatorOption.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <set>
10
12
13namespace autopas {
14
18class LoadEstimatorOption : public Option<LoadEstimatorOption> {
19 public:
23 enum Value {
36 };
37
42
47 constexpr LoadEstimatorOption(Value option) : _value(option) {}
48
53 constexpr operator Value() const { return _value; }
54
59 static std::set<LoadEstimatorOption> getDiscouragedOptions() { return {}; }
60
65 static std::map<LoadEstimatorOption, std::string> getOptionNames() {
66 return {
68 {LoadEstimatorOption::squaredParticlesPerCell, "squared-particles-per-cell"},
69 {LoadEstimatorOption::neighborListLength, "neighbor-list-length"},
70 };
71 };
72
73 private:
74 Value _value{Value(-1)};
75};
76} // namespace autopas
Class representing the load estimator choices.
Definition: LoadEstimatorOption.h:18
Value
Possible choices for the load estimation algorithm.
Definition: LoadEstimatorOption.h:23
@ squaredParticlesPerCell
Number of particles per cell squared.
Definition: LoadEstimatorOption.h:31
@ neighborListLength
Sum of neighbor list lengths.
Definition: LoadEstimatorOption.h:35
@ none
No load estimator.
Definition: LoadEstimatorOption.h:27
static std::set< LoadEstimatorOption > getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
Definition: LoadEstimatorOption.h:59
constexpr LoadEstimatorOption(Value option)
Constructor from value.
Definition: LoadEstimatorOption.h:47
static std::map< LoadEstimatorOption, std::string > getOptionNames()
Provides a way to iterate over the possible choices of LoadEstimatorOption.
Definition: LoadEstimatorOption.h:65
LoadEstimatorOption()=default
Constructor.
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32