Class representing the classification of a normalized cell-pair sortingDirection by the number of its zero components.
More...
#include <SortingDirectionOption.h>
|
| enum | Value : size_t { corner = 0
, edge = 1
, face = 2
} |
| | Possible choices for the direction-type classification, indexed by the number of zero components in the normalized sortingDirection. More...
|
| |
|
|
| SortingDirectionOption ()=default |
| | Constructor.
|
| |
| constexpr | SortingDirectionOption (Value option) |
| | Constructor from value.
|
| |
| constexpr | operator Value () const |
| | Cast to value.
|
| |
| | operator bool ()=delete |
| | Prevents cast to bool by deleting the conversion operator.
|
| |
| std::string | to_string (bool fixedLength=false) const |
| | Converts an Option object to its respective string representation.
|
| |
Class representing the classification of a normalized cell-pair sortingDirection by the number of its zero components.
◆ Value
Possible choices for the direction-type classification, indexed by the number of zero components in the normalized sortingDirection.
| Enumerator |
|---|
| corner | All three components of sortingDirection are non-zero.
|
| edge | Exactly one component of sortingDirection is zero.
|
| face | Exactly two components of sortingDirection are zero.
|
◆ SortingDirectionOption()
| constexpr autopas::options::SortingDirectionOption::SortingDirectionOption |
( |
Value |
option | ) |
|
|
inlineconstexpr |
Constructor from value.
- Parameters
-
◆ fromRawArray()
| static SortingDirectionOption autopas::options::SortingDirectionOption::fromRawArray |
( |
const std::array< double, 3 > & |
sortingDirection | ) |
|
|
inlinestatic |
Classifies a normalized sortingDirection by its number of zero components.
- Parameters
-
| sortingDirection | Normalized vector connecting the centers of two cells. Must not be {0., 0., 0.}. |
- Returns
- The corresponding SortingDirectionOption.
◆ getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
- Returns
◆ getOptionNames()
| static std::map< SortingDirectionOption, std::string > autopas::options::SortingDirectionOption::getOptionNames |
( |
| ) |
|
|
inlinestatic |
Provides a way to iterate over the possible choices of SortingDirectionOption.
- Returns
- map option -> string representation
◆ operator Value()
| constexpr autopas::options::SortingDirectionOption::operator Value |
( |
| ) |
const |
|
inlineconstexpr |
The documentation for this class was generated from the following file: