Panda3D
paramValue.cxx
1 // Filename: paramValue.cxx
2 // Created by: drose (08Feb99)
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 #include "paramValue.h"
16 #include "dcast.h"
17 
18 // Tell GCC that we'll take care of the instantiation explicitly here.
19 #ifdef __GNUC__
20 #pragma implementation
21 #endif
22 
23 TypeHandle ParamValueBase::_type_handle;
24 TypeHandle ParamTypedRefCount::_type_handle;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: ParamValueBase::Destructor
28 // Access: Published, Virtual
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 ParamValueBase::
32 ~ParamValueBase() {
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: ParamTypedRefCount::Destructor
37 // Access: Published, Virtual
38 // Description:
39 ////////////////////////////////////////////////////////////////////
40 ParamTypedRefCount::
41 ~ParamTypedRefCount() {
42 }
43 
44 ////////////////////////////////////////////////////////////////////
45 // Function: ParamTypedRefCount::output
46 // Access: Published, Virtual
47 // Description:
48 ////////////////////////////////////////////////////////////////////
49 void ParamTypedRefCount::
50 output(ostream &out) const {
51  if (_value == (TypedReferenceCount *)NULL) {
52  out << "(empty)";
53 
54  } else {
55  out << _value->get_type();
56  }
57 }
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85