#include <error_rate_manager.h>
Classes | |
struct | ErrorRate |
Public Member Functions | |
float | calculate (T const &id) const |
void | issueError (T const &id) |
void | issueSuccess (T const &id) |
Public Attributes | |
std::unordered_map< T, ErrorRate > | error_rates |
Manage error rates from entities of type T
Definition at line 25 of file error_rate_manager.h.
|
inline |
Calculate the error rate of an entity
Definition at line 37 of file error_rate_manager.h.
|
inline |
Adjust error rate by counting an error
Definition at line 58 of file error_rate_manager.h.
|
inline |
Adjust error rate by counting a success
Definition at line 68 of file error_rate_manager.h.
std::unordered_map<T, ErrorRate> detail::ErrorRateManager< T >::error_rates |
Definition at line 32 of file error_rate_manager.h.