statistics.hh (9865:cc5797147e1c) statistics.hh (10011:69bd1011dcf3)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 214 unchanged lines hidden (view full) ---

223 {
224 return safe_cast<const Info *>(InfoAccess::info());
225 }
226
227 protected:
228 /**
229 * Copy constructor, copies are not allowed.
230 */
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 214 unchanged lines hidden (view full) ---

223 {
224 return safe_cast<const Info *>(InfoAccess::info());
225 }
226
227 protected:
228 /**
229 * Copy constructor, copies are not allowed.
230 */
231 DataWrap(const DataWrap &stat);
231 DataWrap(const DataWrap &stat) {}
232
233 /**
234 * Can't copy stats.
235 */
232
233 /**
234 * Can't copy stats.
235 */
236 void operator=(const DataWrap &);
236 void operator=(const DataWrap &) {}
237
238 public:
239 DataWrap()
240 {
241 this->setInfo(new Info(self()));
242 }
243
244 /**

--- 1252 unchanged lines hidden (view full) ---

1497 : cvec(safe_cast<const Params *>(info->storageParams)->buckets)
1498 {
1499 reset(info);
1500 }
1501
1502 void grow_up();
1503 void grow_out();
1504 void grow_convert();
237
238 public:
239 DataWrap()
240 {
241 this->setInfo(new Info(self()));
242 }
243
244 /**

--- 1252 unchanged lines hidden (view full) ---

1497 : cvec(safe_cast<const Params *>(info->storageParams)->buckets)
1498 {
1499 reset(info);
1500 }
1501
1502 void grow_up();
1503 void grow_out();
1504 void grow_convert();
1505 void add(HistStor *);
1505
1506 /**
1507 * Add a value to the distribution for the given number of times.
1508 * @param val The value to add.
1509 * @param number The number of times to add the value.
1510 */
1511 void
1512 sample(Counter val, int number)

--- 322 unchanged lines hidden (view full) ---

1835 /**
1836 * Reset stat value to default
1837 */
1838 void
1839 reset()
1840 {
1841 data()->reset(this->info());
1842 }
1506
1507 /**
1508 * Add a value to the distribution for the given number of times.
1509 * @param val The value to add.
1510 * @param number The number of times to add the value.
1511 */
1512 void
1513 sample(Counter val, int number)

--- 322 unchanged lines hidden (view full) ---

1836 /**
1837 * Reset stat value to default
1838 */
1839 void
1840 reset()
1841 {
1842 data()->reset(this->info());
1843 }
1844
1845 /**
1846 * Add the argument distribution to the this distibution.
1847 */
1848 void add(DistBase &d) { data()->add(d.data()); }
1849
1843};
1844
1845template <class Stat>
1846class DistProxy;
1847
1848template <class Derived, class Stor>
1849class VectorDistBase : public DataWrapVec<Derived, VectorDistInfoProxy>
1850{

--- 1344 unchanged lines hidden ---
1850};
1851
1852template <class Stat>
1853class DistProxy;
1854
1855template <class Derived, class Stor>
1856class VectorDistBase : public DataWrapVec<Derived, VectorDistInfoProxy>
1857{

--- 1344 unchanged lines hidden ---