Panda3D
pStatCollectorForward.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pStatCollectorForward.h
10  * @author drose
11  * @date 2006-10-30
12  */
13 
14 #ifndef PSTATCOLLECTORFORWARD_H
15 #define PSTATCOLLECTORFORWARD_H
16 
17 #include "pandabase.h"
19 #include "pStatCollector.h"
20 
21 /**
22  * This class serves as a cheap forward reference to a PStatCollector, so that
23  * classes that are defined before the pstats module may access the
24  * PStatCollector.
25  */
26 class EXPCL_PANDA_PSTATCLIENT PStatCollectorForward : public PStatCollectorForwardBase {
27 PUBLISHED:
28  INLINE PStatCollectorForward(const PStatCollector &col);
29 
30 #ifdef DO_PSTATS
31  virtual void add_level(double level);
32 
33 private:
34  PStatCollector _col;
35 #endif
36 };
37 
38 #include "pStatCollectorForward.I"
39 
40 #endif
This class serves as a cheap forward reference to a PStatCollector, which is defined in the pstatclie...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.