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

#include <weakBase.h>

+ Inheritance diagram for TfWeakBase:

Public Member Functions

 TfWeakBase ()
 
 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void constGetUniqueIdentifier () const
 

Protected Member Functions

 ~TfWeakBase ()
 
TfRefPtr< Tf_Remnant_Register () const
 
template<class T >
TfRefPtr< Tf_Remnant_Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Friends

class Tf_WeakBaseAccess
 

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,

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.

Constructor & Destructor Documentation

TfWeakBase::TfWeakBase ( )
inline

Definition at line 144 of file weakBase.h.

TfWeakBase::TfWeakBase ( const TfWeakBase )
inline

Definition at line 146 of file weakBase.h.

TfWeakBase::~TfWeakBase ( )
inlineprotected

Definition at line 175 of file weakBase.h.

Member Function Documentation

const TfWeakBase& TfWeakBase::__GetTfWeakBase__ ( ) const
inline

Definition at line 154 of file weakBase.h.

bool TfWeakBase::_HasRemnant ( ) const
inlineprotected

Definition at line 196 of file weakBase.h.

TfRefPtr<Tf_Remnant> TfWeakBase::_Register ( ) const
inlineprotected

Definition at line 187 of file weakBase.h.

template<class T >
TfRefPtr<Tf_Remnant> TfWeakBase::_Register ( T tempRmnt) const
inlineprotected

Definition at line 192 of file weakBase.h.

void TfWeakBase::EnableNotification2 ( ) const
TF_API void const* TfWeakBase::GetUniqueIdentifier ( ) const
const TfWeakBase& TfWeakBase::operator= ( const TfWeakBase )
inline

Definition at line 158 of file weakBase.h.

Friends And Related Function Documentation

friend class Tf_WeakBaseAccess
friend

Definition at line 208 of file weakBase.h.


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