summaryrefslogtreecommitdiff
path: root/ACE/ace/Stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Stats.h')
-rw-r--r--ACE/ace/Stats.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/ACE/ace/Stats.h b/ACE/ace/Stats.h
index e3f16fdd573..17ac7127138 100644
--- a/ACE/ace/Stats.h
+++ b/ACE/ace/Stats.h
@@ -50,23 +50,23 @@ public:
ACE_Stats_Value (const u_int precision);
/// Accessor for precision.
- u_int precision (void) const;
+ u_int precision () const;
/// Set the whole_ field.
void whole (const ACE_UINT32);
/// Accessor for the whole_ field.
- ACE_UINT32 whole (void) const;
+ ACE_UINT32 whole () const;
/// Set the fractional_ field.
void fractional (const ACE_UINT32);
/// Accessor for the fractional_ field.
- ACE_UINT32 fractional (void) const;
+ ACE_UINT32 fractional () const;
/// Calculates the maximum value of the fractional portion, given its
/// precision.
- ACE_UINT32 fractional_field (void) const;
+ ACE_UINT32 fractional_field () const;
/**
* Access the value as an _unsigned_ 64 bit quantity. It scales the
@@ -76,11 +76,10 @@ public:
void scaled_value (ACE_UINT64 &) const;
/// Print to stdout.
- void dump (void) const;
+ void dump () const;
private:
-
- ACE_Stats_Value (void) {}
+ ACE_Stats_Value () = default;
private:
/// The integer portion of the value.
@@ -95,7 +94,6 @@ private:
* is via the assignment operator.
*/
u_int precision_;
-
};
/**
@@ -128,20 +126,20 @@ class ACE_Export ACE_Stats
{
public:
/// Default constructor.
- ACE_Stats (void);
+ ACE_Stats ();
/// Provide a new sample. Returns 0 on success, -1 if it fails due
/// to running out of memory, or to rolling over of the sample count.
int sample (const ACE_INT32 value);
/// Access the number of samples provided so far.
- ACE_UINT32 samples (void) const;
+ ACE_UINT32 samples () const;
/// Value of the minimum sample provided so far.
- ACE_INT32 min_value (void) const;
+ ACE_INT32 min_value () const;
/// Value of the maximum sample provided so far.
- ACE_INT32 max_value (void) const;
+ ACE_INT32 max_value () const;
/**
* Access the mean of all samples provided so far. The fractional
@@ -195,7 +193,7 @@ public:
ACE_Stats_Value &square_root);
/// Print summary statistics to stdout.
- void dump (void) const;
+ void dump () const;
protected:
/// Internal indication of whether there has been overflow. Contains