17 #ifndef AWALI_DYN_OPTIONS_OPTIONS_HH
18 #define AWALI_DYN_OPTIONS_OPTIONS_HH
20 #include <unordered_map>
87 std::unordered_map<size_t, internal::opt_any_t> map;
96 options_t(std::initializer_list<internal::option_value_pair_t> list);
115 :
options_t((internal::option_value_pair_t) opt) {}
146 auto value = map.find(option.
id);
147 if (
value == map.end())
const size_t id
Definition: option.hh:76
value_t get_default_value()
Definition: option.hh:171
T value_t
Definition: option.hh:75
An options_t is a set of optional parameters that is passed on to called functions.
Definition: options.hh:86
options_t operator+(options_t const &other) const
Creates a new options_t that is the union of this options_t with another options_t.
options_t(std::initializer_list< internal::option_value_pair_t > list)
Creates an options_t from a list of option/value pairs.
options_t(internal::option_value_pair_t pair)
Creates an options_t from one option/value pair.
Definition: options.hh:104
internal::option_t< T >::value_t operator[](internal::option_t< T > option)
Gets the value associated by to given option by this options_t.
Definition: options.hh:141
options_t operator+(internal::option_value_pair_t const &pair) const
Creates a new options_t that is the union of this options_t with another option/value pair.
options_t & operator+=(options_t const &other)
Adds all option/value mapping in other to this options_t, possibly overriding previous values.
options_t(internal::option_t< T > opt)
Creates an options_t from an internal::option_t by mapping it to its default value.
Definition: options.hh:114
options_t & operator+=(internal::option_value_pair_t const &other)
Adds an option/value pair to this options_t, possibly overriding a previous value.
options_t()
Definition: options.hh:98
static constexpr TOP< void > value
Definition: priority.hh:93
pair_automaton< Aut > pair(const Aut &aut, bool keep_initials=false)
Definition: synchronizing_word.hh:266
Main namespace of Awali.
Definition: ato.hh:22