cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Class of traits of parameter values. More...
#include <stat_bench/param/parameter_value.h>
Static Public Member Functions | |
static auto | calculate_hash (const std::shared_ptr< void > &data) -> std::size_t |
Calculate hash value. | |
static auto | equal (const std::shared_ptr< void > &data1, const std::shared_ptr< void > &data2) -> bool |
Check whether two values are equal. | |
static auto | get_type () -> const std::type_info & |
Get the type. | |
static auto | to_double (const std::shared_ptr< void > &data) -> double |
Convert to double. | |
static auto | to_string (const std::shared_ptr< void > &data) -> util::Utf8String |
Format to string. | |
static auto | to_variant (const std::shared_ptr< void > &data) -> ParameterValueVariant |
Convert to a variant object. | |
Class of traits of parameter values.
T | Type of value. |
Definition at line 53 of file parameter_value.h.
|
inlinestaticnodiscard |
Calculate hash value.
[in] | data | Data. |
Definition at line 122 of file parameter_value.h.
|
inlinestaticnodiscard |
Check whether two values are equal.
[in] | data1 | Data. |
[in] | data2 | Data. |
true | Two values are equal. |
false | Two values are not equal. |
Definition at line 136 of file parameter_value.h.
|
inlinestaticnodiscard |
|
inlinestaticnodiscard |
Convert to double.
[in] | data | Data. |
Definition at line 81 of file parameter_value.h.
|
inlinestaticnodiscard |
Format to string.
[in] | data | Data. |
Definition at line 69 of file parameter_value.h.
|
inlinestaticnodiscard |
Convert to a variant object.
[in] | data | Data. |
Definition at line 97 of file parameter_value.h.