[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Stats.inl
blob4c76838c2074156852535b4c0c6f3d29a54efb07
1 // -*- C++ -*-
2 //
3 // $Id: Stats.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_INLINE
8 ACE_Stats_Value::ACE_Stats_Value (const u_int precision)
9   : whole_ (0),
10     fractional_ (0),
11     precision_ (precision)
15 ACE_INLINE
16 u_int
17 ACE_Stats_Value::precision (void) const
19   return precision_;
22 ACE_INLINE
23 void
24 ACE_Stats_Value::whole (const ACE_UINT32 value)
26   whole_ = value;
29 ACE_INLINE
30 ACE_UINT32
31 ACE_Stats_Value::whole (void) const
33   return whole_;
36 ACE_INLINE
37 void
38 ACE_Stats_Value::fractional (const ACE_UINT32 value)
40   fractional_ = value;
43 ACE_INLINE
44 ACE_UINT32
45 ACE_Stats_Value::fractional (void) const
47   return fractional_;
50 ACE_INLINE
51 void
52 ACE_Stats_Value::scaled_value (ACE_UINT64 &sv) const
54   sv = whole () * fractional_field ()  +  fractional ();
57 ACE_INLINE
58 void
59 ACE_Stats_Value::dump (void) const
61 #if defined (ACE_HAS_DUMP)
62   ACE_DEBUG ((LM_DEBUG,
63               ACE_TEXT ("precision: %u digits; whole: %u, fractional: %u\n"),
64               precision_, whole_, fractional_));
65 #endif /* ACE_HAS_DUMP */
68 ACE_INLINE
69 ACE_Stats::ACE_Stats (void)
71   reset ();
74 ACE_INLINE
75 ACE_UINT32
76 ACE_Stats::samples (void) const
78   return number_of_samples_;
81 ACE_INLINE
82 ACE_INT32
83 ACE_Stats::min_value (void) const
85   return min_;
88 ACE_INLINE
89 ACE_INT32
90 ACE_Stats::max_value (void) const
92   return max_;
95 ACE_INLINE
96 void
97 ACE_Stats::dump (void) const
99 #if defined (ACE_HAS_DUMP)
100   print_summary (3u);
101 #endif /* ACE_HAS_DUMP */
104 ACE_END_VERSIONED_NAMESPACE_DECL