All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
osl::stat::Ratio Class Reference

#include <ratio.h>

Collaboration diagram for osl::stat::Ratio:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 12 of file ratio.h.

Constructor & Destructor Documentation

osl::stat::Ratio::Ratio ( const char *  n = 0,
bool  show = false 
)
inline

Definition at line 18 of file ratio.h.

osl::stat::Ratio::~Ratio ( )

Definition at line 6 of file ratio.cc.

References ave, name, osl::stat::Average::numElements(), show(), and show_on_destructor.

Member Function Documentation

void osl::stat::Ratio::add ( bool  success)
inline
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

Definition at line 19 of file ratio.cc.

References ratio.

Referenced by ~Ratio().

Member Data Documentation

Average osl::stat::Ratio::ave
private

Definition at line 14 of file ratio.h.

Referenced by add(), clear(), ratio(), and ~Ratio().

const char* osl::stat::Ratio::name
private

Definition at line 15 of file ratio.h.

Referenced by ~Ratio().

bool osl::stat::Ratio::show_on_destructor
private

Definition at line 16 of file ratio.h.

Referenced by ~Ratio().


The documentation for this class was generated from the following files: