*Backed out changeset 3be01fb200a5

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 15:51:44 -07:00
parent 26b5e033ff
commit e585187b24
2257 changed files with 103863 additions and 761 deletions
+15
View File
@@ -1,7 +1,9 @@
// -*- C++ -*-
//
// $Id: Stats.inl 80826 2008-03-04 14:51:23Z wotte $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_Stats_Value::ACE_Stats_Value (const u_int precision)
: whole_ (0),
@@ -9,42 +11,49 @@ ACE_Stats_Value::ACE_Stats_Value (const u_int precision)
precision_ (precision)
{
}
ACE_INLINE
u_int
ACE_Stats_Value::precision (void) const
{
return precision_;
}
ACE_INLINE
void
ACE_Stats_Value::whole (const ACE_UINT32 value)
{
whole_ = value;
}
ACE_INLINE
ACE_UINT32
ACE_Stats_Value::whole (void) const
{
return whole_;
}
ACE_INLINE
void
ACE_Stats_Value::fractional (const ACE_UINT32 value)
{
fractional_ = value;
}
ACE_INLINE
ACE_UINT32
ACE_Stats_Value::fractional (void) const
{
return fractional_;
}
ACE_INLINE
void
ACE_Stats_Value::scaled_value (ACE_UINT64 &sv) const
{
sv = whole () * fractional_field () + fractional ();
}
ACE_INLINE
void
ACE_Stats_Value::dump (void) const
@@ -55,29 +64,34 @@ ACE_Stats_Value::dump (void) const
precision_, whole_, fractional_));
#endif /* ACE_HAS_DUMP */
}
ACE_INLINE
ACE_Stats::ACE_Stats (void)
{
reset ();
}
ACE_INLINE
ACE_UINT32
ACE_Stats::samples (void) const
{
return number_of_samples_;
}
ACE_INLINE
ACE_INT32
ACE_Stats::min_value (void) const
{
return min_;
}
ACE_INLINE
ACE_INT32
ACE_Stats::max_value (void) const
{
return max_;
}
ACE_INLINE
void
ACE_Stats::dump (void) const
@@ -86,4 +100,5 @@ ACE_Stats::dump (void) const
print_summary (3u);
#endif /* ACE_HAS_DUMP */
}
ACE_END_VERSIONED_NAMESPACE_DECL