Panda3D
 All Classes Functions Variables Enumerations
pStatCollectorForward.h
1 // Filename: pStatCollectorForward.h
2 // Created by: drose (30Oct06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PSTATCOLLECTORFORWARD_H
16 #define PSTATCOLLECTORFORWARD_H
17 
18 #include "pandabase.h"
19 #include "pStatCollectorForwardBase.h"
20 #include "pStatCollector.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PStatCollectorForward
24 // Description : This class serves as a cheap forward reference to a
25 // PStatCollector, so that classes that are defined
26 // before the pstats module may access the
27 // PStatCollector.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDA_PSTATCLIENT PStatCollectorForward : public PStatCollectorForwardBase {
30 PUBLISHED:
31  INLINE PStatCollectorForward(const PStatCollector &col);
32 
33 #ifdef DO_PSTATS
34  virtual void add_level(double level);
35 
36 private:
37  PStatCollector _col;
38 #endif
39 };
40 
41 #include "pStatCollectorForward.I"
42 
43 #endif
This class serves as a cheap forward reference to a PStatCollector, which is defined in the pstatclie...
This class serves as a cheap forward reference to a PStatCollector, so that classes that are defined ...
A lightweight class that represents a single element that may be timed and/or counted via stats...