14 #ifndef TYPEDWRITABLEREFERENCECOUNT_H 15 #define TYPEDWRITABLEREFERENCECOUNT_H 44 return get_class_type();
46 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
50 static void init_type() {
51 TypedWritable::init_type();
52 ReferenceCount::init_type();
54 TypedWritable::get_class_type(),
55 ReferenceCount::get_class_type());
57 "TypedWriteableReferenceCount");
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual ReferenceCount * as_reference_count()
Returns the pointer cast to a ReferenceCount pointer, if it is in fact of that type.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the base class for PointerTo and ConstPointerTo.
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void record_alternate_name(TypeHandle type, const std::string &name)
Indicates an alternate name for the same type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
A base class for all things that want to be reference-counted.
TypeHandle is the identifier used to differentiate C++ class types.