Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE TypedWritableReferenceCount::
18TypedWritableReferenceCount() {
19#ifdef DO_MEMORY_USAGE
20 MemoryUsage::update_type(this, this);
21#endif
22}
23
24/**
25 *
26 */
27INLINE TypedWritableReferenceCount::
28TypedWritableReferenceCount(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 */
39INLINE void TypedWritableReferenceCount::
40operator = (const TypedWritableReferenceCount &copy) {
41 TypedWritable::operator = (copy);
42 ReferenceCount::operator = (copy);
43}
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.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
Base class for objects that can be written to and read from Bam files.