beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / poppler / ProfileData.h
blob418ee010755e70b9fe1f8b65a89713e2b4568ae6
1 //========================================================================
2 //
3 // ProfileData.h
4 //
5 // Copyright 2005 Jonathan Blandford <jrb@gnome.org>
6 //
7 //========================================================================
9 #ifndef PROFILE_DATA_H
10 #define PROFILE_DATA_H
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
16 //------------------------------------------------------------------------
17 // ProfileData
18 //------------------------------------------------------------------------
20 class ProfileData {
21 public:
23 // Constructor.
24 ProfileData ();
26 // Destructor.
27 ~ProfileData() {}
29 void addElement (double elapsed);
30 int getCount () { return count; }
31 double getTotal () { return total; }
32 double getMin () { return max; }
33 double getMax () { return max; }
34 private:
35 int count; // size of <elems> array
36 double total; // number of elements in array
37 double min; // reference count
38 double max; // reference count
41 #endif