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>
|
|
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.
◆ This
◆ TfAnyWeakPtr() [1/5]
template<class Ptr , class = typename std::enable_if<Tf_SupportsWeakPtr< typename Ptr::DataType>::value>::type>
Construct an AnyWeakPtr watching ptr.
Definition at line 49 of file anyWeakPtr.h.
◆ TfAnyWeakPtr() [2/5]
Construct an AnyWeakPtr not watching any ptr.
Definition at line 56 of file anyWeakPtr.h.
◆ TfAnyWeakPtr() [3/5]
Construct and implicitly convert from TfNullPtr.
Definition at line 63 of file anyWeakPtr.h.
◆ TfAnyWeakPtr() [4/5]
Construct and implicitly convert from std::nullptr_t.
Definition at line 66 of file anyWeakPtr.h.
◆ TfAnyWeakPtr() [5/5]
◆ ~TfAnyWeakPtr()
◆ GetHash()
Return a hash value for this instance.
Definition at line 133 of file anyWeakPtr.h.
◆ GetType()
| TF_API TfType const & GetType |
( |
| ) |
const |
Returns the TfType of the underlying WeakPtr.
◆ GetTypeInfo()
| TF_API const std::type_info & GetTypeInfo |
( |
| ) |
const |
returns the type_info of the underlying WeakPtr
◆ GetUniqueIdentifier()
| TF_API void const * GetUniqueIdentifier |
( |
| ) |
const |
Return the unique identifier of the WeakPtr this AnyWeakPtr contains.
◆ GetWeakBase()
Return the TfWeakBase object of the WeakPtr we are holding.
◆ IsInvalid()
| TF_API bool IsInvalid |
( |
| ) |
const |
Return true only if this expiry checker is watching a weak pointer which has expired.
◆ operator bool()
| TF_API operator bool |
( |
| ) |
const |
◆ operator!()
| TF_API bool operator! |
( |
| ) |
const |
◆ operator!=()
◆ operator<()
◆ operator<=()
◆ operator=()
◆ operator==()
◆ operator>()
◆ operator>=()
greater than or equal operator
Definition at line 122 of file anyWeakPtr.h.
The documentation for this class was generated from the following file: