This class count the number of success and failure.
More...
#include <hpp/statistics/success-bin.hh>
This class count the number of success and failure.
◆ SuccessBin()
◆ createReason()
static Reason hpp::statistics::SuccessBin::createReason |
( |
const std::string & |
what | ) |
|
|
inlinestatic |
Create a new Reason
- Parameters
-
what | The text associated with the reason. |
◆ isSuccess()
bool hpp::statistics::SuccessBin::isSuccess |
( |
| ) |
const |
|
inline |
Value of the bin.
- Returns
- True is it counts "success", False otherwise.
◆ operator<()
bool hpp::statistics::SuccessBin::operator< |
( |
const SuccessBin & |
other | ) |
const |
|
inline |
Comparison
- Returns
- the comparison of their reason id. 'success' has a reason id of INT_MIN.
◆ operator==()
bool hpp::statistics::SuccessBin::operator== |
( |
const SuccessBin & |
other | ) |
const |
|
inline |
Check for equality.
- Returns
- True if both are 'success' or if they are both 'failure' with the same Reason.
◆ reason()
const Reason& hpp::statistics::SuccessBin::reason |
( |
| ) |
const |
|
inline |
If this bin represents 'failure', returns the reason.
◆ reasonString()
const std::string& hpp::statistics::SuccessBin::reasonString |
( |
| ) |
const |
|
inline |
If this bin represents 'failure', returns the reason as a string.
◆ REASON_UNKNOWN
const Reason hpp::statistics::SuccessBin::REASON_UNKNOWN |
|
static |
The default reason for 'failure'.
The documentation for this class was generated from the following file: