All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfWeakBase Class Reference

Enable a concrete base class for use with TfWeakPtr. More...

+ Inheritance diagram for TfWeakBase:

Public Member Functions

 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void const * GetUniqueIdentifier () const
 

Protected Member Functions

TfRefPtr< Tf_Remnant > _Register () const
 
template<class T >
TfRefPtr< Tf_Remnant > _Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Detailed Description

Enable a concrete base class for use with TfWeakPtr.

You should be familiar with the TfWeakPtr type before reading further.

A class is enabled for use with the TfWeakPtr type by publicly deriving from TfWeakBase. (Note that deriving from TfWeakBase adds data to a structure, so the result is no longer a "pure" interface class.)

For example,

* #include "pxr/base/tf/weakBase.h"
*
* class Simple : public TfWeakBase {
* ...
* };
*

Given the above inheritance, a Simple* can now be used to initialize an object of type TfWeakPtr<Simple>.

Definition at line 142 of file weakBase.h.


The documentation for this class was generated from the following file: