Class containing multiple options that form an algorithm configuration for the pairwise iteration.
More...
#include <Configuration.h>
|
constexpr | Configuration (ContainerOption _container, double _cellSizeFactor, TraversalOption _traversal, LoadEstimatorOption _loadEstimator, DataLayoutOption _dataLayout, Newton3Option _newton3, InteractionTypeOption _interactionType) |
| Constructor.
|
|
constexpr | Configuration () |
| Constructor taking no arguments.
|
|
std::string | toString () const |
| Returns string representation in JSON style of the configuration object.
|
|
std::string | toShortString (bool fixedLength=true) const |
| Returns a short string representation of the configuration object, suitable for tabular output.
|
|
std::string | getCSVHeader () const |
| Generate a csv header containing all keys from the toString() method.
|
|
std::string | getCSVLine () const |
| Generate a csv representation containing all values from the toString() method.
|
|
bool | hasValidValues () const |
| Returns whether the configuration has been initialized with valid values or as an invalid one.
|
|
bool | hasCompatibleValues () const |
| Checks if any of the configuration values are incompatible with each other.
|
|
bool | equalsDiscreteOptions (const Configuration &rhs) const |
| Check if all discrete options of the given configuration are equal to this'.
|
|
bool | equalsContinuousOptions (const autopas::Configuration &rhs, double epsilon=1e-12) const |
| Check if all continuous options of the given configuration are equal to this configuration.
|
|
|
ContainerOption | container |
| Container option.
|
|
TraversalOption | traversal |
| Traversal option.
|
|
LoadEstimatorOption | loadEstimator |
| Load Estimator option.
|
|
DataLayoutOption | dataLayout |
| Data Layout option.
|
|
Newton3Option | newton3 |
| Newton 3 option.
|
|
double | cellSizeFactor |
| CellSizeFactor.
|
|
InteractionTypeOption | interactionType |
| Interaction type of the configuration.
|
|
Class containing multiple options that form an algorithm configuration for the pairwise iteration.
◆ Configuration() [1/2]
constexpr autopas::Configuration::Configuration |
( |
ContainerOption |
_container, |
|
|
double |
_cellSizeFactor, |
|
|
TraversalOption |
_traversal, |
|
|
LoadEstimatorOption |
_loadEstimator, |
|
|
DataLayoutOption |
_dataLayout, |
|
|
Newton3Option |
_newton3, |
|
|
InteractionTypeOption |
_interactionType |
|
) |
| |
|
inlineconstexpr |
Constructor.
- Parameters
-
_container | |
_traversal | |
_loadEstimator | |
_dataLayout | |
_newton3 | |
_cellSizeFactor | |
_interactionType | |
- Note
- needs constexpr (hence inline) constructor to be a literal.
◆ Configuration() [2/2]
constexpr autopas::Configuration::Configuration |
( |
| ) |
|
|
inlineconstexpr |
Constructor taking no arguments.
Initializes all properties to an invalid choice or false.
- Note
- needs constexpr (hence inline) constructor to be a literal.
◆ equalsContinuousOptions()
bool autopas::Configuration::equalsContinuousOptions |
( |
const autopas::Configuration & |
rhs, |
|
|
double |
epsilon = 1e-12 |
|
) |
| const |
Check if all continuous options of the given configuration are equal to this configuration.
- Parameters
-
rhs | configuration compared against. |
epsilon | Maximal allowed absolute difference between two continuous values to be considered equal. |
- Returns
◆ equalsDiscreteOptions()
bool autopas::Configuration::equalsDiscreteOptions |
( |
const Configuration & |
rhs | ) |
const |
Check if all discrete options of the given configuration are equal to this'.
- Parameters
-
- Returns
◆ getCSVHeader()
std::string autopas::Configuration::getCSVHeader |
( |
| ) |
const |
Generate a csv header containing all keys from the toString() method.
- Returns
- Contains the header.
◆ getCSVLine()
std::string autopas::Configuration::getCSVLine |
( |
| ) |
const |
Generate a csv representation containing all values from the toString() method.
- Returns
- String representing the current configuration.
◆ hasCompatibleValues()
bool autopas::Configuration::hasCompatibleValues |
( |
| ) |
const |
Checks if any of the configuration values are incompatible with each other.
- Returns
- True if all options are compatible to each other.
◆ hasValidValues()
bool autopas::Configuration::hasValidValues |
( |
| ) |
const |
Returns whether the configuration has been initialized with valid values or as an invalid one.
Does not return false if it has valid values whose combination is invalid (e.g. when the container and traversal do not fit).
- Returns
◆ toShortString()
std::string autopas::Configuration::toShortString |
( |
bool |
fixedLength = true | ) |
const |
|
inline |
Returns a short string representation of the configuration object, suitable for tabular output.
- Parameters
-
fixedLength | See Option::to_string(). |
- Returns
- A short string representation.
◆ toString()
std::string autopas::Configuration::toString |
( |
| ) |
const |
Returns string representation in JSON style of the configuration object.
- Returns
- String representation.
The documentation for this class was generated from the following files: