Panda3D
panda
src
express
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
virtual
~
PStatCollectorForwardBase
();
31
32
#ifdef DO_PSTATS
33
virtual
void
add_level(
double
level)=0;
34
#else
35
// We still need to declare a virtual destructor for ABI compatibility, so
36
// that a vtable is created.
37
INLINE
void
add_level(
double
level) { }
38
#endif
39
};
40
41
#endif
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ReferenceCount
A base class for all things that want to be reference-counted.
Definition:
referenceCount.h:38
referenceCount.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PStatCollectorForwardBase
This class serves as a cheap forward reference to a PStatCollector, which is defined in the pstatclie...
Definition:
pStatCollectorForwardBase.h:28
Generated on Mon Sep 14 2020 15:06:52 for Panda3D by
1.8.20