Panda3D
|
A "proxy" to use to make a reference-countable object whenever the object cannot inherit from ReferenceCount for some reason. More...
#include "referenceCount.h"
Public Member Functions | |
RefCountProxy (const Base ©) | |
operator Base & () | |
operator const Base & () const | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
A "proxy" to use to make a reference-countable object whenever the object cannot inherit from ReferenceCount for some reason.
RefCountPr<MyClass> can be treated as an instance of MyClass directly, for the most part, except that it can be reference counted.
If you want to declare a RefCountProxy to something that does not have get_class_type(), you will have to define a template specialization on _get_type_handle() and _do_init_type(), as in typedObject.h.
Definition at line 124 of file referenceCount.h.