ComPPare 1.0.0
|
Concept for types supported by automatic error policy selection. More...
#include <policy.hpp>
Public Member Functions | |
ArithmeticErrorPolicy () | |
~ArithmeticErrorPolicy ()=default | |
MetricValue< T > | metric (std::size_t) const |
bool | is_fail () const |
void | compute_error (const T &a, const T &b) |
Static Public Member Functions | |
static constexpr std::size_t | metric_count () |
static constexpr std::string_view | metric_name (std::size_t) |
Private Attributes | |
T | error_ = T(0) |
std::string | err_msg_ |
bool | fail_ {false} |
bool | valid_ {true} |
T | tolerance_ |
Static Private Attributes | |
static constexpr std::array | names {"Total|err|"} |
Concept for types supported by automatic error policy selection.
Error policy for arithmetic types (e.g., int, float, double). Computes the absolute error between two values and checks if it exceeds a configurable tolerance.
T | Value type |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
|
private |