AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
autopas::options::Newton3Option Class Reference

Class representing the choices for the Newton 3 optimization. More...

#include <Newton3Option.h>

Inheritance diagram for autopas::options::Newton3Option:
Inheritance graph
[legend]
Collaboration diagram for autopas::options::Newton3Option:
Collaboration graph
[legend]

Public Types

enum  Value { disabled , enabled }
 Possible choices for the Newton3 optimization. More...
 

Public Member Functions

 Newton3Option ()=default
 Constructor.
 
constexpr Newton3Option (Value option)
 Constructor from value.
 
constexpr operator Value () const
 Cast to value.
 
- Public Member Functions inherited from autopas::options::Option< Newton3Option >
 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.
 

Static Public Member Functions

static std::set< Newton3OptiongetDiscouragedOptions ()
 Set of options that are very unlikely to be interesting.
 
static std::map< Newton3Option, std::string > getOptionNames ()
 Provides a way to iterate over the possible choices of TraversalOption.
 
- Static Public Member Functions inherited from autopas::options::Option< Newton3Option >
static std::set< Newton3OptiongetAllOptions ()
 Provides a way to iterate over the possible options.
 
static std::set< Newton3OptiongetMostOptions ()
 Provides a way to iterate over the possible options minus those that are very unlikely to be on interest.
 
static size_t maxStringLength ()
 Returns the number of characters in the string representation of the longest option.
 
static OutputContainer parseOptions (const std::string &optionsString)
 Converts a string of options to a set of enums.
 
static Newton3Option parseOptionExact (const std::string &optionString)
 Converts a string to an enum.
 

Detailed Description

Class representing the choices for the Newton 3 optimization.

Member Enumeration Documentation

◆ Value

Possible choices for the Newton3 optimization.

Values consistent with bool.

Enumerator
disabled 

Calculate F_{ij} and F_{ji} individually.

enabled 

Use F_{ij} = -F_{ji}.

Constructor & Destructor Documentation

◆ Newton3Option()

constexpr autopas::options::Newton3Option::Newton3Option ( Value  option)
inlineconstexpr

Constructor from value.

Parameters
option

Member Function Documentation

◆ getDiscouragedOptions()

static std::set< Newton3Option > autopas::options::Newton3Option::getDiscouragedOptions ( )
inlinestatic

Set of options that are very unlikely to be interesting.

Returns

◆ getOptionNames()

static std::map< Newton3Option, std::string > autopas::options::Newton3Option::getOptionNames ( )
inlinestatic

Provides a way to iterate over the possible choices of TraversalOption.

Returns
map option -> string representation

◆ operator Value()

constexpr autopas::options::Newton3Option::operator Value ( ) const
inlineconstexpr

Cast to value.

Returns

The documentation for this class was generated from the following file: