Panda3D
 All Classes Functions Variables Enumerations
pStatCollectorForwardBase.h
1 // Filename: pStatCollectorForwardBase.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 PSTATCOLLECTORFORWARDBASE_H
16 #define PSTATCOLLECTORFORWARDBASE_H
17 
18 #include "pandabase.h"
19 #include "referenceCount.h"
20 
21 ////////////////////////////////////////////////////////////////////
22 // Class : PStatCollectorForwardBase
23 // Description : This class serves as a cheap forward reference to a
24 // PStatCollector, which is defined in the pstatclient
25 // module (and is not directly accessible here in the
26 // express module).
27 //
28 // This is subclassed as PStatCollectorForward, which
29 // defines the actual functionality.
30 ////////////////////////////////////////////////////////////////////
31 class EXPCL_PANDAEXPRESS PStatCollectorForwardBase : public ReferenceCount {
32 PUBLISHED:
33 #ifdef DO_PSTATS
34  virtual ~PStatCollectorForwardBase();
35  virtual void add_level(double level)=0;
36 #else
37  INLINE void add_level(double level) { }
38 #endif
39 };
40 
41 #endif
This class serves as a cheap forward reference to a PStatCollector, which is defined in the pstatclie...
A base class for all things that want to be reference-counted.