Bug 796038 - Default browser prompt shows even after setting defaults for Firefox...
[gecko.git] / tools / jprof / intcnt.h
blobb3c54f5825626aaf2d780bfaf4e8c1267a9cb925
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef INTCNT_H
6 #define INTCNT_H
8 class IntCount
10 public:
11 IntCount();
12 ~IntCount();
13 void clear();
14 int countAdd(int index, int increment=1);
15 int countGet(int index);
16 int getSize();
17 int getCount(int pos);
18 int getIndex(int pos);
20 private:
21 IntCount(const IntCount&); // No copy constructor
23 int numInts;
24 struct IntPair{int idx; int cnt;} *iPair;
27 #endif