statistics.hh (6004:97660425ff39) statistics.hh (6015:4df1c7698e52)
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;

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

956 /** The index to access in the parent VectorBase. */
957 off_type index;
958
959 public:
960 /**
961 * Return the current value of this stat as its base type.
962 * @return The current value.
963 */
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;

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

956 /** The index to access in the parent VectorBase. */
957 off_type index;
958
959 public:
960 /**
961 * Return the current value of this stat as its base type.
962 * @return The current value.
963 */
964 Counter value() const { return stat->data(index)->value(); }
964 Counter value() const { return stat.data(index)->value(); }
965
966 /**
967 * Return the current value of this statas a result type.
968 * @return The current value.
969 */
965
966 /**
967 * Return the current value of this statas a result type.
968 * @return The current value.
969 */
970 Result result() const { return stat->data(index)->result(); }
970 Result result() const { return stat.data(index)->result(); }
971
972 public:
973 /**
974 * Create and initialize this proxy, do not register it with the database.
975 * @param i The index to access.
976 */
977 ScalarProxy(Stat &s, off_type i)
978 : stat(s), index(i)

--- 1959 unchanged lines hidden ---
971
972 public:
973 /**
974 * Create and initialize this proxy, do not register it with the database.
975 * @param i The index to access.
976 */
977 ScalarProxy(Stat &s, off_type i)
978 : stat(s), index(i)

--- 1959 unchanged lines hidden ---