Class representing the interaction type choices. More...
#include <InteractionTypeOption.h>
Public Types | |
enum | Value : Value_t { pairwise = 0b0001 , triwise = 0b0010 , all = 0b0011 } |
Possible choices for the interaction type. More... | |
using | Value_t = unsigned int |
Type used for the internal enum. | |
Public Member Functions | |
InteractionTypeOption ()=default | |
Constructor. | |
constexpr | InteractionTypeOption (Value option) |
Constructor from value. | |
constexpr | InteractionTypeOption (Value_t option) |
Constructor from number 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. | |
Static Public Member Functions | |
static std::set< InteractionTypeOption > | getDiscouragedOptions () |
Set of options that are very unlikely to be interesting. | |
static std::map< InteractionTypeOption, std::string > | getOptionNames () |
Provides a way to iterate over the possible choices of InteractionTypeOption. | |
![]() | |
static std::set< InteractionTypeOption > | getAllOptions () |
Provides a way to iterate over the possible options. | |
static std::set< InteractionTypeOption > | getMostOptions () |
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 InteractionTypeOption | parseOptionExact (const std::string &optionString) |
Converts a string to an enum. | |
Class representing the interaction type choices.
|
inlineconstexpr |
Constructor from value.
option |
|
inlineconstexpr |
Constructor from number value.
This is useful when combining values and directly using the result as argument of type InteractionTypeOption. This is necessary since e.g. pairwise & triwise results in an object of Value_t instead of Value.
option |
|
inlinestatic |
Set of options that are very unlikely to be interesting.
|
inlinestatic |
Provides a way to iterate over the possible choices of InteractionTypeOption.
|
inlineconstexpr |
Cast to value.