|
Provides the ability to hold an arbitrary TfWeakPtr in a non-type-specific manner in order to observe whether it has expired or not. More...
#include <anyWeakPtr.h>
Public Types | |
typedef TfAnyWeakPtr | This |
Public Member Functions | |
template<class Ptr , class = typename std::enable_if<Tf_SupportsWeakPtr< typename Ptr::DataType>::value>::type> | |
TfAnyWeakPtr (Ptr const &ptr) | |
Construct an AnyWeakPtr watching ptr. | |
TfAnyWeakPtr () | |
Construct an AnyWeakPtr not watching any ptr. | |
TfAnyWeakPtr (TfNullPtrType) | |
Construct and implicitly convert from TfNullPtr. | |
TfAnyWeakPtr (std::nullptr_t) | |
Construct and implicitly convert from std::nullptr_t. | |
TfAnyWeakPtr (TfAnyWeakPtr const &other) | |
TfAnyWeakPtr & | operator= (TfAnyWeakPtr const &other) |
TF_API bool | IsInvalid () const |
Return true only if this expiry checker is watching a weak pointer which has expired. | |
TF_API void const * | GetUniqueIdentifier () const |
Return the unique identifier of the WeakPtr this AnyWeakPtr contains. | |
TF_API TfWeakBase const * | GetWeakBase () const |
Return the TfWeakBase object of the WeakPtr we are holding. | |
TF_API | operator bool () const |
bool operator | |
TF_API bool | operator! () const |
operator ! | |
TF_API bool | operator== (const TfAnyWeakPtr &rhs) const |
equality operator | |
bool | operator!= (const TfAnyWeakPtr &rhs) const |
inequality operator | |
TF_API bool | operator< (const TfAnyWeakPtr &rhs) const |
comparison operator | |
bool | operator<= (const TfAnyWeakPtr &rhs) const |
less than or equal operator | |
bool | operator> (const TfAnyWeakPtr &rhs) const |
greater than operator | |
bool | operator>= (const TfAnyWeakPtr &rhs) const |
greater than or equal operator | |
TF_API const std::type_info & | GetTypeInfo () const |
returns the type_info of the underlying WeakPtr | |
TF_API TfType const & | GetType () const |
Returns the TfType of the underlying WeakPtr. | |
size_t | GetHash () const |
Return a hash value for this instance. | |
Friends | |
template<class WeakPtr > | |
WeakPtr | TfAnyWeakPtrDynamicCast (const TfAnyWeakPtr &anyWeak, WeakPtr *) |
Provides the ability to hold an arbitrary TfWeakPtr in a non-type-specific manner in order to observe whether it has expired or not.
Definition at line 36 of file anyWeakPtr.h.
typedef TfAnyWeakPtr This |
Definition at line 43 of file anyWeakPtr.h.
|
inline |
Construct an AnyWeakPtr watching ptr.
Definition at line 49 of file anyWeakPtr.h.
|
inline |
Construct an AnyWeakPtr not watching any ptr.
Definition at line 56 of file anyWeakPtr.h.
|
inline |
Construct and implicitly convert from TfNullPtr.
Definition at line 63 of file anyWeakPtr.h.
|
inline |
Construct and implicitly convert from std::nullptr_t.
Definition at line 66 of file anyWeakPtr.h.
|
inline |
Definition at line 68 of file anyWeakPtr.h.
|
inline |
Definition at line 80 of file anyWeakPtr.h.
|
inline |
Return a hash value for this instance.
Definition at line 133 of file anyWeakPtr.h.
TF_API const std::type_info & GetTypeInfo | ( | ) | const |
returns the type_info of the underlying WeakPtr
TF_API void const * GetUniqueIdentifier | ( | ) | const |
Return the unique identifier of the WeakPtr this AnyWeakPtr contains.
TF_API TfWeakBase const * GetWeakBase | ( | ) | const |
Return the TfWeakBase object of the WeakPtr we are holding.
TF_API bool IsInvalid | ( | ) | const |
Return true only if this expiry checker is watching a weak pointer which has expired.
TF_API operator bool | ( | ) | const |
bool operator
TF_API bool operator! | ( | ) | const |
operator !
|
inline |
inequality operator
Definition at line 104 of file anyWeakPtr.h.
TF_API bool operator< | ( | const TfAnyWeakPtr & | rhs | ) | const |
comparison operator
|
inline |
less than or equal operator
Definition at line 112 of file anyWeakPtr.h.
|
inline |
Definition at line 72 of file anyWeakPtr.h.
TF_API bool operator== | ( | const TfAnyWeakPtr & | rhs | ) | const |
equality operator
|
inline |
greater than operator
Definition at line 117 of file anyWeakPtr.h.
|
inline |
greater than or equal operator
Definition at line 122 of file anyWeakPtr.h.