statistics.hh (11565:9b9116df5e88) | statistics.hh (11848:f438fcbab00e) |
---|---|
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; --- 1345 unchanged lines hidden (view full) --- 1354/** The parameters for a distribution stat. */ 1355struct DistParams : public StorageParams 1356{ 1357 const DistType type; 1358 DistParams(DistType t) : type(t) {} 1359}; 1360 1361/** | 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; --- 1345 unchanged lines hidden (view full) --- 1354/** The parameters for a distribution stat. */ 1355struct DistParams : public StorageParams 1356{ 1357 const DistType type; 1358 DistParams(DistType t) : type(t) {} 1359}; 1360 1361/** |
1362 * Templatized storage and interface for a distrbution stat. | 1362 * Templatized storage and interface for a distribution stat. |
1363 */ 1364class DistStor 1365{ 1366 public: 1367 /** The parameters for a distribution stat. */ 1368 struct Params : public DistParams 1369 { 1370 /** The minimum value to track. */ --- 518 unchanged lines hidden (view full) --- 1889 */ 1890 void 1891 reset() 1892 { 1893 data()->reset(this->info()); 1894 } 1895 1896 /** | 1363 */ 1364class DistStor 1365{ 1366 public: 1367 /** The parameters for a distribution stat. */ 1368 struct Params : public DistParams 1369 { 1370 /** The minimum value to track. */ --- 518 unchanged lines hidden (view full) --- 1889 */ 1890 void 1891 reset() 1892 { 1893 data()->reset(this->info()); 1894 } 1895 1896 /** |
1897 * Add the argument distribution to the this distibution. | 1897 * Add the argument distribution to the this distribution. |
1898 */ 1899 void add(DistBase &d) { data()->add(d.data()); } 1900 1901}; 1902 1903template <class Stat> 1904class DistProxy; 1905 --- 1373 unchanged lines hidden --- | 1898 */ 1899 void add(DistBase &d) { data()->add(d.data()); } 1900 1901}; 1902 1903template <class Stat> 1904class DistProxy; 1905 --- 1373 unchanged lines hidden --- |