Class of dictionaries of parameters.
More...
#include <stat_bench/param/parameter_dict.h>
Class of dictionaries of parameters.
Definition at line 44 of file parameter_dict.h.
◆ ParameterDict()
◆ as_string_dict()
Get as a dictionary of string values.
- Returns
- Dictionary.
Definition at line 79 of file parameter_dict.cpp.
◆ calculate_hash()
auto stat_bench::param::ParameterDict::calculate_hash |
( |
| ) |
const -> std::size_t |
|
nodiscard |
◆ clone_without()
Create a new dictionary without a parameter.
- Parameters
-
[in] | param_name | Parameter name to remove. |
- Returns
- New dictionary.
Definition at line 89 of file parameter_dict.cpp.
◆ empty()
auto stat_bench::param::ParameterDict::empty |
( |
| ) |
const -> bool |
|
nodiscardnoexcept |
Check whether this is empty.
- Return values
-
true | This has no parameter. |
false | This has one or more parameters. |
Definition at line 35 of file parameter_dict.cpp.
◆ format_to()
auto stat_bench::param::ParameterDict::format_to |
( |
fmt::format_context::iterator | out | ) |
const -> fmt::format_context::iterator |
|
nodiscard |
Format to string.
- Parameters
-
[in] | out | Output iterator to write the formatted string. |
- Returns
- Output iterator after formatting.
Definition at line 61 of file parameter_dict.cpp.
◆ get()
template<typename T>
auto stat_bench::param::ParameterDict::get |
( |
const ParameterName & | param_name | ) |
const -> const T& |
|
inlinenodiscard |
Get a parameter value.
- Template Parameters
-
- Parameters
-
[in] | param_name | Parameter name. |
- Returns
- Value.
Definition at line 79 of file parameter_dict.h.
◆ get_as_double()
auto stat_bench::param::ParameterDict::get_as_double |
( |
const ParameterName & | param_name | ) |
const -> double |
|
nodiscard |
Get a parameter value as double.
- Parameters
-
[in] | param_name | Parameter name. |
- Returns
- Value.
Definition at line 41 of file parameter_dict.cpp.
◆ get_as_variant()
Get a parameter value as a variant object.
- Parameters
-
[in] | param_name | Parameter name. |
- Returns
- Value.
Definition at line 51 of file parameter_dict.cpp.
◆ has()
auto stat_bench::param::ParameterDict::has |
( |
const ParameterName & | param_name | ) |
const -> bool |
|
nodiscard |
Check whether this has a parameter with a name.
- Parameters
-
[in] | param_name | Parameter name to check. |
- Return values
-
true | This has a parameter with the given name. |
false | This doesn't have a parameter with the given name. |
Definition at line 37 of file parameter_dict.cpp.
◆ operator!=()
auto stat_bench::param::ParameterDict::operator!= |
( |
const ParameterDict & | rhs | ) |
const -> bool |
|
nodiscard |
Check whether this is not equal to another dictionary.
- Parameters
-
[in] | rhs | Right-hand-side dictionary. |
- Return values
-
true | This is not equal to the right-hand-side dictionary. |
false | This is equal to the right-hand-side dictionary. |
Definition at line 119 of file parameter_dict.cpp.
◆ operator==()
auto stat_bench::param::ParameterDict::operator== |
( |
const ParameterDict & | rhs | ) |
const -> bool |
|
nodiscard |
Check whether this is equal to another dictionary.
- Parameters
-
[in] | rhs | Right-hand-side dictionary. |
- Return values
-
true | This is equal to the right-hand-side dictionary. |
false | This is not equal to the right-hand-side dictionary. |
Definition at line 115 of file parameter_dict.cpp.
The documentation for this class was generated from the following files: