Panda3D
pStatCollectorForwardBase.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 pStatCollectorForwardBase.h
10  * @author drose
11  * @date 2006-10-30
12  */
13 
14 #ifndef PSTATCOLLECTORFORWARDBASE_H
15 #define PSTATCOLLECTORFORWARDBASE_H
16 
17 #include "pandabase.h"
18 #include "referenceCount.h"
19 
20 /**
21  * This class serves as a cheap forward reference to a PStatCollector, which
22  * is defined in the pstatclient module (and is not directly accessible here
23  * in the express module).
24  *
25  * This is subclassed as PStatCollectorForward, which defines the actual
26  * functionality.
27  */
28 class EXPCL_PANDA_EXPRESS PStatCollectorForwardBase : public ReferenceCount {
29 PUBLISHED:
30 #ifdef DO_PSTATS
31  virtual ~PStatCollectorForwardBase();
32  virtual void add_level(double level)=0;
33 #else
34  INLINE void add_level(double level) { }
35 #endif
36 };
37 
38 #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.
A base class for all things that want to be reference-counted.