stats: clean up how templates are used on the data side.
authorNathan Binkert <nate@binkert.org>
Fri, 6 Mar 2009 03:09:53 +0000 (19:09 -0800)
committerNathan Binkert <nate@binkert.org>
Fri, 6 Mar 2009 03:09:53 +0000 (19:09 -0800)
commit9f45fbaaa6e5f0fc63c63162b756c44b33e367f5
tree69e036df5d4aca7d57e27eace024b495c7faa3c3
parentcc95b5739097e31fdaa36a3ff443861969e338b1
stats: clean up how templates are used on the data side.
This basically works by taking advantage of the curiously recurring template
pattern in an intelligent way so as to reduce the number of lines of code
and hopefully make things a little bit clearer.
src/base/statistics.cc
src/base/statistics.hh