Panda3D
typedWritableReferenceCount.I
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 typedWritableReferenceCount.I
10  * @author jason
11  * @date 2000-06-08
12  */
13 
14 /**
15  *
16  */
17 INLINE TypedWritableReferenceCount::
18 TypedWritableReferenceCount() {
19 #ifdef DO_MEMORY_USAGE
20  MemoryUsage::update_type(this, this);
21 #endif
22 }
23 
24 /**
25  *
26  */
27 INLINE TypedWritableReferenceCount::
28 TypedWritableReferenceCount(const TypedWritableReferenceCount &copy) :
29  TypedWritable(copy),
30  ReferenceCount(copy) {
31 #ifdef DO_MEMORY_USAGE
32  MemoryUsage::update_type(this, this);
33 #endif
34 }
35 
36 /**
37  *
38  */
39 INLINE void TypedWritableReferenceCount::
40 operator = (const TypedWritableReferenceCount &copy) {
41  TypedWritable::operator = (copy);
42  ReferenceCount::operator = (copy);
43 }
Base class for objects that can be written to and read from Bam files.
Definition: typedWritable.h:35
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
static void update_type(ReferenceCount *ptr, TypeHandle type)
Associates the indicated type with the given pointer.
Definition: memoryUsage.I:55
A base class for all things that want to be reference-counted.