24 #ifndef PXR_BASE_TF_REF_BASE_H
25 #define PXR_BASE_TF_REF_BASE_H
81 TfRefBase() : _shouldInvokeUniqueChangedListener(false) { }
98 _shouldInvokeUniqueChangedListener = shouldCall;
111 bool _shouldInvokeUniqueChangedListener;
113 static UniqueChangedListener _uniqueChangedListener;
138 #endif // PXR_BASE_TF_REF_BASE_H
bool IsUnique() const
Return true if only one TfRefPtr points to this object.
const TfRefCount & GetRefCount() const
friend TfRefPtr< T > TfCreateRefPtrFromProtectedWeakPtr(TfWeakPtr< T > const &)
virtual TF_API ~TfRefBase()
void(* UniqueChangedFuncPtr)(TfRefBase const *, bool)
virtual TF_API ~TfSimpleRefBase()
UniqueChangedFuncPtr func
static TF_API void SetUniqueChangedListener(UniqueChangedListener listener)
size_t GetCurrentCount() const
Return the current reference count of this object.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
int Get() const
Returns counter's value.
void SetShouldInvokeUniqueChangedListener(bool shouldCall)