Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Stats.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Stats.i,v 1.1.1.3 2001/12/04 14:33:09 chad Exp $
00003 
00004 ACE_INLINE
00005 ACE_Stats_Value::ACE_Stats_Value (const u_int precision)
00006   : whole_ (0),
00007     fractional_ (0),
00008     precision_ (precision)
00009 {
00010 }
00011 
00012 ACE_INLINE
00013 u_int
00014 ACE_Stats_Value::precision (void) const
00015 {
00016   return precision_;
00017 }
00018 
00019 ACE_INLINE
00020 void
00021 ACE_Stats_Value::whole (const ACE_UINT32 value)
00022 {
00023   whole_ = value;
00024 }
00025 
00026 ACE_INLINE
00027 ACE_UINT32
00028 ACE_Stats_Value::whole (void) const
00029 {
00030   return whole_;
00031 }
00032 
00033 ACE_INLINE
00034 void
00035 ACE_Stats_Value::fractional (const ACE_UINT32 value)
00036 {
00037   fractional_ = value;
00038 }
00039 
00040 ACE_INLINE
00041 ACE_UINT32
00042 ACE_Stats_Value::fractional (void) const
00043 {
00044   return fractional_;
00045 }
00046 
00047 ACE_INLINE
00048 void
00049 ACE_Stats_Value::scaled_value (ACE_UINT64 &sv) const
00050 {
00051   sv = whole () * fractional_field ()  +  fractional ();
00052 }
00053 
00054 ACE_INLINE
00055 void
00056 ACE_Stats_Value::dump (void) const
00057 {
00058   ACE_DEBUG ((LM_DEBUG,
00059               ACE_LIB_TEXT ("precision: %u digits; whole: %u, fractional: %u\n"),
00060               precision_, whole_, fractional_));
00061 }
00062 
00063 ACE_INLINE
00064 ACE_Stats::ACE_Stats (void)
00065 {
00066   reset ();
00067 }
00068 
00069 ACE_INLINE
00070 ACE_UINT32
00071 ACE_Stats::samples (void) const
00072 {
00073   return number_of_samples_;
00074 }
00075 
00076 ACE_INLINE
00077 ACE_INT32
00078 ACE_Stats::min_value (void) const
00079 {
00080   return min_;
00081 }
00082 
00083 ACE_INLINE
00084 ACE_INT32
00085 ACE_Stats::max_value (void) const
00086 {
00087   return max_;
00088 }
00089 
00090 ACE_INLINE
00091 void
00092 ACE_Stats::dump (void) const
00093 {
00094   print_summary (3u);
00095 }

Generated on Mon Jun 16 11:21:24 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002