Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedFromThis
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< OtherType, Mode > SharedThis
(
OtherType* ThisPtr |
Provides access to a shared reference to an object, given the object's 'this' pointer. | Templates/SharedPointer.h | |
static TSharedRef< OtherType const, Mode > SharedThis
(
const OtherType* ThisPtr |
Provides access to a shared reference to an object, given the object's 'this' pointer. | Templates/SharedPointer.h |
SharedThis(OtherType *)
Description
Provides access to a shared reference to an object, given the object's 'this' pointer. Uses the 'this' pointer to derive the object's actual type, then casts and returns an appropriately typed shared reference. Intentionally declared 'protected', as should only be called when the 'this' pointer can be passed.
| Name | SharedThis |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<class OtherType>
static TSharedRef < OtherType, Mode > SharedThis
(
OtherType * ThisPtr
)
Returns this object as a shared pointer
SharedThis(const OtherType *)
Description
Provides access to a shared reference to an object, given the object's 'this' pointer. Uses the 'this' pointer to derive the object's actual type, then casts and returns an appropriately typed shared reference. Intentionally declared 'protected', as should only be called when the 'this' pointer can be passed.
| Name | SharedThis |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<class OtherType>
static TSharedRef < OtherType const, Mode > SharedThis
(
const OtherType * ThisPtr
)
Returns this object as a shared pointer (const)