statistics.hh (10491:452c860fd0ee) statistics.hh (11565:9b9116df5e88)
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;

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

154 size_type size() const { return this->s.size(); }
155};
156
157template <class Stat>
158class Vector2dInfoProxy : public InfoProxy<Stat, Vector2dInfo>
159{
160 public:
161 Vector2dInfoProxy(Stat &stat) : InfoProxy<Stat, Vector2dInfo>(stat) {}
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;

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

154 size_type size() const { return this->s.size(); }
155};
156
157template <class Stat>
158class Vector2dInfoProxy : public InfoProxy<Stat, Vector2dInfo>
159{
160 public:
161 Vector2dInfoProxy(Stat &stat) : InfoProxy<Stat, Vector2dInfo>(stat) {}
162
163 Result total() const { return this->s.total(); }
162};
163
164struct StorageParams
165{
166 virtual ~StorageParams();
167};
168
169class InfoAccess

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

1293#if 0
1294 for (off_type i = 0; i < size(); ++i)
1295 if (!data(i)->zero())
1296 return false;
1297 return true;
1298#endif
1299 }
1300
164};
165
166struct StorageParams
167{
168 virtual ~StorageParams();
169};
170
171class InfoAccess

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

1295#if 0
1296 for (off_type i = 0; i < size(); ++i)
1297 if (!data(i)->zero())
1298 return false;
1299 return true;
1300#endif
1301 }
1302
1303 /**
1304 * Return a total of all entries in this vector.
1305 * @return The total of all vector entries.
1306 */
1307 Result
1308 total() const
1309 {
1310 Result total = 0.0;
1311 for (off_type i = 0; i < size(); ++i)
1312 total += data(i)->result();
1313 return total;
1314 }
1315
1301 void
1302 prepare()
1303 {
1304 Info *info = this->info();
1305 size_type size = this->size();
1306
1307 for (off_type i = 0; i < size; ++i)
1308 data(i)->prepare(info);

--- 1955 unchanged lines hidden ---
1316 void
1317 prepare()
1318 {
1319 Info *info = this->info();
1320 size_type size = this->size();
1321
1322 for (off_type i = 0; i < size; ++i)
1323 data(i)->prepare(info);

--- 1955 unchanged lines hidden ---