Panda3D
|
A base class for things which need to inherit from both TypedWritable and from ReferenceCount. More...
#include "typedWritableReferenceCount.h"
Public Member Functions | |
TypedWritableReferenceCount (const TypedWritableReferenceCount ©) | |
virtual ReferenceCount * | as_reference_count () |
Returns the pointer cast to a ReferenceCount pointer, if it is in fact of that type. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | operator= (const TypedWritableReferenceCount ©) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static | PT (TypedWritableReferenceCount) decode_from_bam_stream(const string &data |
Public Attributes | |
static BamReader * | reader = NULL) |
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
It's convenient to define this intermediate base class instead of multiply inheriting from the two classes each time they are needed, so that we can sensibly pass around pointers to things which are both TypedWritables and ReferenceCounters.
See also TypedObject for detailed instructions.
Definition at line 35 of file typedWritableReferenceCount.h.
ReferenceCount * TypedWritableReferenceCount::as_reference_count | ( | ) | [virtual] |
Returns the pointer cast to a ReferenceCount pointer, if it is in fact of that type.
Reimplemented from TypedWritable.
Definition at line 26 of file typedWritableReferenceCount.cxx.