Public Member Functions | Private Attributes | List of all members
osl::stat::Ratio Class Reference

#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
 

Detailed Description

Definition at line 12 of file ratio.h.

Constructor & Destructor Documentation

§ Ratio()

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

Definition at line 18 of file ratio.h.

References ~Ratio().

§ ~Ratio()

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

Definition at line 6 of file ratio.cc.

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

Referenced by Ratio().

Member Function Documentation

§ add()

void osl::stat::Ratio::add ( bool  success)
inline

§ clear()

void osl::stat::Ratio::clear ( )
inline

Definition at line 25 of file ratio.h.

References osl::stat::Average::clear().

§ ratio()

double osl::stat::Ratio::ratio ( ) const
inline

Definition at line 23 of file ratio.h.

References osl::stat::Average::average(), and show().

Referenced by show().

§ show()

void osl::stat::Ratio::show ( ) const

Definition at line 19 of file ratio.cc.

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

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

Member Data Documentation

§ ave

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

Definition at line 14 of file ratio.h.

Referenced by show(), and ~Ratio().

§ name

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

Definition at line 15 of file ratio.h.

Referenced by show(), and ~Ratio().

§ show_on_destructor

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: