Panda3D
Public Member Functions | Static Public Member Functions

RefCountProxy< Base > Class Template Reference

A "proxy" to use to make a reference-countable object whenever the object cannot inherit from ReferenceCount for some reason. More...

#include "referenceCount.h"

Inheritance diagram for RefCountProxy< Base >:
ReferenceCount MemoryBase

List of all members.

Public Member Functions

 RefCountProxy (const Base &copy)
 operator Base & ()
 operator const Base & () const

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Detailed Description

template<class Base>
class RefCountProxy< Base >

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations