hpp::statistics::SuccessStatistics Class Reference

#include <hpp/statistics/success-bin.hh>

Inheritance diagram for hpp::statistics::SuccessStatistics:
Collaboration diagram for hpp::statistics::SuccessStatistics:

List of all members.

Public Types

typedef Statistics< SuccessBinParent

Public Member Functions

 SuccessStatistics ()
 Constructor.
void addSuccess ()
 Add a 'success'.
void addFailure (const SuccessBin::Reason &r=SuccessBin::REASON_UNKNOWN)
 Add a 'failure'.
unsigned int nbSuccess () const
 Count the number of success.
unsigned int nbFailure () const
 Count the number of failure, in total.
unsigned int nbFailure (const SuccessBin::Reason &r) const
 Count the number of a particular failure.

Member Typedef Documentation


Constructor & Destructor Documentation

hpp::statistics::SuccessStatistics::SuccessStatistics ( )

Constructor.


Member Function Documentation

void hpp::statistics::SuccessStatistics::addFailure ( const SuccessBin::Reason r = SuccessBin::REASON_UNKNOWN)

Add a 'failure'.

Parameters:
rthe reason of the 'failure'
Note:
Use macro DEFINE_REASON_FAILURE (REASON_NAME, 'Reason details') to define a new reason.
void hpp::statistics::SuccessStatistics::addSuccess ( )

Add a 'success'.

unsigned int hpp::statistics::SuccessStatistics::nbFailure ( ) const

Count the number of failure, in total.

unsigned int hpp::statistics::SuccessStatistics::nbFailure ( const SuccessBin::Reason r) const

Count the number of a particular failure.

unsigned int hpp::statistics::SuccessStatistics::nbSuccess ( ) const

Count the number of success.