diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 15:55:35 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 15:55:35 -0800 |
commit | 548b4a1cb045c6675692e8ed7c6375ebb808c803 (patch) | |
tree | c7a28b92dddb711c6bb2ed2c7a11ea2d387277a3 /base/statistics.hh | |
parent | 956aff1291990639f8a59a95c6b22e0c17bb8cd8 (diff) | |
download | gem5-548b4a1cb045c6675692e8ed7c6375ebb808c803.tar.xz |
Change "Foo& foo" declarations to "Foo &foo".
This primarily to be internally consistent (sometimes we used one,
sometimes the other, even within the same line of code!).
I picked the latter to be symmetric with "Foo *foo".
base/cprintf_formats.hh:
base/range.hh:
base/refcnt.hh:
base/res_list.hh:
base/statistics.hh:
base/str.hh:
cpu/exec_context.hh:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
sim/serialize.cc:
sim/serialize.hh:
sim/syscall_emul.hh:
Change "Foo& foo" declarations to "Foo &foo".
--HG--
extra : convert_revision : ca1b0e85a578b539214bda3b8d61ac23792f2e87
Diffstat (limited to 'base/statistics.hh')
-rw-r--r-- | base/statistics.hh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/base/statistics.hh b/base/statistics.hh index cbc976053..d8b78fbff 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -838,7 +838,7 @@ class ScalarBase : public DataAccess * @param v The new value. */ template <typename U> - void operator=(const U& v) { data()->set(v, params); } + void operator=(const U &v) { data()->set(v, params); } /** * Increment the stat by the given value. This calls the associated @@ -846,7 +846,7 @@ class ScalarBase : public DataAccess * @param v The value to add. */ template <typename U> - void operator+=(const U& v) { data()->inc(v, params); } + void operator+=(const U &v) { data()->inc(v, params); } /** * Decrement the stat by the given value. This calls the associated @@ -854,7 +854,7 @@ class ScalarBase : public DataAccess * @param v The value to substract. */ template <typename U> - void operator-=(const U& v) { data()->dec(v, params); } + void operator-=(const U &v) { data()->dec(v, params); } /** * Return the number of elements, always 1 for a scalar. @@ -1105,7 +1105,7 @@ class ScalarProxy * @param v The new value. */ template <typename U> - void operator=(const U& v) { data()->set(v, *params); } + void operator=(const U &v) { data()->set(v, *params); } /** * Increment the stat by the given value. This calls the associated @@ -1113,7 +1113,7 @@ class ScalarProxy * @param v The value to add. */ template <typename U> - void operator+=(const U& v) { data()->inc(v, *params); } + void operator+=(const U &v) { data()->inc(v, *params); } /** * Decrement the stat by the given value. This calls the associated @@ -1121,7 +1121,7 @@ class ScalarProxy * @param v The value to substract. */ template <typename U> - void operator-=(const U& v) { data()->dec(v, *params); } + void operator-=(const U &v) { data()->dec(v, *params); } /** * Return the number of elements, always 1 for a scalar. @@ -1574,7 +1574,7 @@ struct AvgFancy * @param number The number of times to add the value. * @param p The paramters of the distribution. */ - void sample(T val, int number, const Params& p) + void sample(T val, int number, const Params &p) { T value = val * number; sum += value; @@ -1663,7 +1663,7 @@ class DistBase : public DataAccess * @param n The number of times to add it, defaults to 1. */ template <typename U> - void sample(const U& v, int n = 1) { data()->sample(v, n, params); } + void sample(const U &v, int n = 1) { data()->sample(v, n, params); } /** * Return the number of entries in this stat. @@ -1787,7 +1787,7 @@ class DistProxy public: template <typename U> - void sample(const U& v, int n = 1) { data()->sample(v, n, cstat->params); } + void sample(const U &v, int n = 1) { data()->sample(v, n, cstat->params); } size_t size() const { return 1; } bool zero() const { return data()->zero(cstat->params); } @@ -2534,7 +2534,7 @@ class Scalar * @param v The new value. */ template <typename U> - void operator=(const U& v) { Base::operator=(v); } + void operator=(const U &v) { Base::operator=(v); } }; /** @@ -2562,7 +2562,7 @@ class Average * @param v The new value. */ template <typename U> - void operator=(const U& v) { Base::operator=(v); } + void operator=(const U &v) { Base::operator=(v); } }; /** |