#include <ratio.h>
Public Member Functions | |
Ratio (const char *n=0, bool show=false) | |
~Ratio () | |
void | add (bool success) |
double | ratio () const |
void | show () const |
void | clear () |
Private Attributes | |
Average | ave |
const char * | name |
bool | show_on_destructor |
osl::stat::Ratio::Ratio | ( | const char * | n = 0 , |
bool | show = false |
||
) | [inline] |
Definition at line 6 of file ratio.cc.
References ave, name, osl::stat::Average::numElements(), show(), and show_on_destructor.
void osl::stat::Ratio::add | ( | bool | success | ) | [inline] |
Definition at line 22 of file ratio.h.
References osl::stat::Average::add(), and ave.
Referenced by osl::checkmate::Dfpn::attack(), osl::checkmate::DualDfpn::findProof(), osl::checkmate::Dfpn::proofOracleAttack(), and osl::search::QuiescenceSearch2< EvalT >::searchMain().
void osl::stat::Ratio::clear | ( | ) | [inline] |
Definition at line 25 of file ratio.h.
References ave, and osl::stat::Average::clear().
double osl::stat::Ratio::ratio | ( | ) | const [inline] |
Definition at line 23 of file ratio.h.
References ave, and osl::stat::Average::getAverage().
void osl::stat::Ratio::show | ( | ) | const |
Average osl::stat::Ratio::ave [private] |
const char* osl::stat::Ratio::name [private] |
bool osl::stat::Ratio::show_on_destructor [private] |