16inline namespace options {
57 constexpr operator Value()
const {
return _value; }
83 return static_cast<Value>(std::ranges::count(sortingDirection, 0.0));
Base class for autopas options.
Definition: Option.h:26
Class representing the classification of a normalized cell-pair sortingDirection by the number of its...
Definition: SortingDirectionOption.h:21
static std::set< SortingDirectionOption > getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
Definition: SortingDirectionOption.h:63
SortingDirectionOption()=default
Constructor.
constexpr SortingDirectionOption(Value option)
Constructor from value.
Definition: SortingDirectionOption.h:51
static std::map< SortingDirectionOption, std::string > getOptionNames()
Provides a way to iterate over the possible choices of SortingDirectionOption.
Definition: SortingDirectionOption.h:69
Value
Possible choices for the direction-type classification, indexed by the number of zero components in t...
Definition: SortingDirectionOption.h:27
@ corner
All three components of sortingDirection are non-zero.
Definition: SortingDirectionOption.h:31
@ face
Exactly two components of sortingDirection are zero.
Definition: SortingDirectionOption.h:39
@ edge
Exactly one component of sortingDirection is zero.
Definition: SortingDirectionOption.h:35
static SortingDirectionOption fromRawArray(const std::array< double, 3 > &sortingDirection)
Classifies a normalized sortingDirection by its number of zero components.
Definition: SortingDirectionOption.h:82
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:34