|
FORCEINLINE | TWeakPtr (SharedPointerInternals::FNullTag *=nullptr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE | TWeakPtr (TSharedRef< OtherType, Mode > const &InSharedRef) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE | TWeakPtr (TSharedPtr< OtherType, Mode > const &InSharedPtr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE | TWeakPtr (TWeakPtr< OtherType, Mode > const &InWeakPtr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE | TWeakPtr (TWeakPtr< OtherType, Mode > &&InWeakPtr) |
|
FORCEINLINE | TWeakPtr (TWeakPtr const &InWeakPtr) |
|
FORCEINLINE | TWeakPtr (TWeakPtr &&InWeakPtr) |
|
FORCEINLINE TWeakPtr & | operator= (SharedPointerInternals::FNullTag *) |
|
FORCEINLINE TWeakPtr & | operator= (TWeakPtr const &InWeakPtr) |
|
FORCEINLINE TWeakPtr & | operator= (TWeakPtr &&InWeakPtr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE TWeakPtr & | operator= (TWeakPtr< OtherType, Mode > const &InWeakPtr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE TWeakPtr & | operator= (TWeakPtr< OtherType, Mode > &&InWeakPtr) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE TWeakPtr & | operator= (TSharedRef< OtherType, Mode > const &InSharedRef) |
|
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type> |
FORCEINLINE TWeakPtr & | operator= (TSharedPtr< OtherType, Mode > const &InSharedPtr) |
|
FORCEINLINE TSharedPtr< ObjectType, Mode > | Pin () const |
|
FORCEINLINE const bool | IsValid () const |
|
FORCEINLINE void | Reset () |
|
FORCEINLINE bool | HasSameObject (const void *InOtherPtr) const |
|
template<class ObjectType, int Mode>
class TWeakPtr< ObjectType, Mode >
TWeakPtr is a non-intrusive reference-counted weak object pointer. This weak pointer will be conditionally thread-safe when the optional Mode template argument is set to ThreadSafe.
Definition at line 913 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Constructs a weak pointer from a shared reference
- Parameters
-
InSharedRef | The shared reference to create a weak pointer from |
Definition at line 934 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Constructs a weak pointer from a shared pointer
- Parameters
-
InSharedPtr | The shared pointer to create a weak pointer from |
Definition at line 948 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Constructs a weak pointer from a weak pointer of another type. This constructor is intended to allow derived-to-base conversions.
- Parameters
-
InWeakPtr | The weak pointer to create a weak pointer from |
Definition at line 963 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Assignment operator sets this weak pointer from a shared pointer
- Parameters
-
InSharedPtr | The shared pointer used to assign to this weak pointer |
Definition at line 1079 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Assignment operator sets this weak pointer from a shared reference
- Parameters
-
InSharedRef | The shared reference used to assign to this weak pointer |
Definition at line 1063 of file SharedPointer.h.
template<class ObjectType , int Mode>
template<typename OtherType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherType, ObjectType>::Value>::Type>
Assignment operator adds a weak reference to the object referenced by the specified weak pointer. This assignment operator is intended to allow derived-to-base conversions.
- Parameters
-
InWeakPtr | The weak pointer for the object to assign |
Definition at line 1034 of file SharedPointer.h.
template<class ObjectType , int Mode>
Converts this weak pointer to a shared pointer that you can use to access the object (if it hasn't expired yet.) Remember, if there are no more shared references to the object, the returned shared pointer will not be valid. You should always check to make sure the returned pointer is valid before trying to dereference the shared pointer!
- Returns
- Shared pointer for this object (will only be valid if still referenced!)
Definition at line 1094 of file SharedPointer.h.