statistics.hh (5547:747034106af4) | statistics.hh (5582:c2fd66e6a919) |
---|---|
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; --- 995 unchanged lines hidden (view full) --- 1004 * This stat has no state. Nothing to reset 1005 */ 1006 void reset() { } 1007 1008 public: 1009 std::string 1010 str() const 1011 { | 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; --- 995 unchanged lines hidden (view full) --- 1004 * This stat has no state. Nothing to reset 1005 */ 1006 void reset() { } 1007 1008 public: 1009 std::string 1010 str() const 1011 { |
1012 return csprintf("%s[%d]", stat->str(), index); 1013 | 1012 return csprintf("%s[%d]", stat->statData()->name, index); |
1014 } 1015}; 1016 1017/** 1018 * Implementation of a vector of stats. The type of stat is determined by the 1019 * Storage class. @sa ScalarBase 1020 */ 1021template <class Stor> --- 1921 unchanged lines hidden --- | 1013 } 1014}; 1015 1016/** 1017 * Implementation of a vector of stats. The type of stat is determined by the 1018 * Storage class. @sa ScalarBase 1019 */ 1020template <class Stor> --- 1921 unchanged lines hidden --- |