Language:
Discover
By Skill Level
By Category

TSharedFromThis

Choose your OS:

Inheritance Hierarchy

TSharedFromThis

FAIMessageObserver

FApplicationMode

FBlueprintComponentsApplicationMode

FBlueprintDefaultsApplicationMode

FBlueprintEditorApplicationMode

FBlueprintEditorUnifiedMode

FBlueprintInterfaceApplicationMode

FBlueprintMacroApplicationMode

FAssetEditorModeManager

IPersonaEditorModeManager

FAssetEditorToolkit

FSimpleAssetEditor

FWorkflowCentricApplication

IAnimationEditor

IBehaviorTreeEditor

IBlueprintEditor

FBlueprintEditor

IAnimationBlueprintEditor

IPhysicsAssetEditor

ISkeletalMeshEditor

ISkeletonEditor

ICascade

ICurveAssetEditor

ICurveTableEditor

IDataTableEditor

IEnvironmentQueryEditor

IFontEditor

IMaterialEditor

IMatinee

ISoundClassEditor

ISoundCueEditor

ISoundSubmixEditor

IStaticMeshEditor

IStringTableEditor

ITextureEditorToolkit

ITranslationEditor

IUserDefinedEnumEditor

IUserDefinedStructureEditor

FAssetThumbnail

FAudioSection

FAutomationSpecBase

FBindingContext

TCommands

FAnimGraphCommands

FBufferVisualizationMenuCommands

FCurveEditorCommands

FEditorViewportCommands

FFullBlueprintEditorCommands

FGenericCommands

FGlobalEditorCommonCommands

FGraphEditorCommandsImpl

FLevelEditorCommands

FLevelEditorModesCommands

FLevelViewportCommands

FLogWidgetCommands

FMaterialEditorCommands

FMaterialEditorSpawnNodeCommands

FMeshEditorAnyElementCommands

FMeshEditorCommonCommands

FMeshEditorEdgeCommands

FMeshEditorPolygonCommands

FMeshEditorSelectionModifiers

FMeshEditorVertexCommands

FMeshPainterCommands

FPersonaCommonCommands

FPlayWorldCommands

FPListEditorCommands

FSequencerCommands

FShowFlagMenuCommands

FSoundCueGraphEditorCommands

FStaticMeshEditorCommands

FTabCommands

FTranslationEditorCommands

FViewportNavigationCommands

FBlueprintCompileReinstancer

FBlueprintEditorToolbar

FBuildPatchServicesPreLoadManagerBase

FCarouselDisplayItem

FComponentClassComboEntry

FComponentVisualizer

FConstraintComponentVisualizer

FDecalComponentVisualizer

FPhysicsAnimationComponentVisualizer

FPointLightComponentVisualizer

FRadialForceComponentVisualizer

FRectLightComponentVisualizer

FSensingComponentVisualizer

FSplineComponentVisualizer

FSplineMeshComponentVisualizer

FSpotLightComponentVisualizer

FSpringArmComponentVisualizer

FSpringComponentVisualizer

FStereoLayerComponentVisualizer

TAttenuatedComponentVisualizer

FAudioComponentVisualizer

FForceFeedbackComponentVisualizer

FConfigPropertyConfigFileStateCellPresenter

FCurveEditor

FCurveSequence

FDefaultSpectatorScreenController

FDesignerExtension

FDesignerSurfaceElement

FDiffResultItem

FDocumentTracker

FDragDropOperation

FBoneDragDropOp

FBrushBuilderDragDropOp

FClassDragDropOp

FColorDragDrop

FDecoratedDragDropOp

FActorDragDropOp

FActorDragDropGraphEdOp

FAssetDragDropOp

FCollectionDragDropOp

FFolderDragDropOp

FLayerDragDropOp

FLayersDragDropOp

FLevelDragDropOp

FMultipleDataDragOp

FDragAndDropVerticalBoxOp

FExportTextDragDropOp

FExternalDragOperation

FGameDragDropOperation

FUMGDragDropOp

FGraphEditorDragDropAction

FGraphSchemaActionDragDropAction

FSequencerObjectBindingDragDropOp

FSceneOutlinerDragDropOp

FSocketDragDropOp

FUICommandDragDropOp

FEdMode

FEdModeDefault

FEdModeGeometry

FEdModeInterpEdit

FEdModeTexture

FPhysicsDebugMode

FPhysicsManipulationEdMode

IMeshPaintEdMode

FEdModeMeshPaint

IPersonaEditMode

IAnimNodeEditMode

FAnimNodeEditMode

IPlacementMode

FFbxAttributeInfo

FFbxMaterialInfo

FFbxMeshInfo

FFbxTextureInfo

FFbxCameraInfo

FFbxLightInfo

FFbxMaterialInfo

FFbxMeshInfo

FFbxNodeInfo

FFbxSceneInfo

FFbxTextureInfo

FFindInBlueprintsResult

FFindInBlueprintsGraph

FFindInBlueprintsGraphNode

FFindInBlueprintsPin

FFindInBlueprintsProperty

FFindTurnBasedMatchCallbackProxyMatchmakerDelegate

FGameModeInfoCustomizer

FGameplayDebuggerAddonBase

FGameplayDebuggerCategory

FGameplayDebuggerExtension

FGeometryCacheSection

FGraphPanelNodeFactory

FGraphPanelPinConnectionFactory

FGraphPanelPinFactory

FBlueprintGraphPanelPinFactory

FImaginaryFiBData

FCategorySectionHelper

FFiBMetaData

FImaginaryBlueprint

FImaginaryGraph

FImaginaryGraphNode

FImaginaryPin

FImaginaryProperty

FImaginaryComponent

FLayoutExtender

FLevelEditorSequencerBindingData

FLevelViewportLayout

FLevelViewportTabContent

FLocalizationCommandletProcess

FMaterialList

FMessageEndpoint

FMobilityCustomization

FModeToolkit

FTextureAlignMode

FMovieSceneCaptureBase

FInEditorCapture

FNewProcessCapture

FMovieSceneChannelProxy

FMovieSceneExportData

FMovieSceneImportData

FMovieSceneSpawnRegister

FLevelSequenceSpawnRegister

FNullMovieSceneSpawnRegister

FMovieSceneTrackEditor

FAudioTrackEditor

FGeometryCacheTrackEditor

FKeyframeTrackEditor

FPropertyTrackEditor

FBoolPropertyTrackEditor

FSpawnTrackEditor

FMaterialTrackEditor

FComponentMaterialTrackEditor

FSubTrackEditor

FMovieSceneTranslatorContext

FMovieViewport

FMultiBlock

FToolBarButtonBlock

FToolBarComboButtonBlock

FMultiBox

FNavDataGenerator

FNavigationConfig

FNullNavigationConfig

FNavigationOctree

FNavigationPath

FAbstractNavigationPath

FNavMeshPath

FMetaNavMeshPath

FNavigationQueryFilter

FNavigationRelevantData

FNavMeshSceneProxyData

FNetAnalyticsData

TBasicNetAnalyticsData

FNetConnAnalyticsData

FOnlineParty

FOnlinePartyData

FOnlinePartyId

FPartyConfiguration

FPendingDelete

FPopupLayer

FOverlayPopupLayer

FQueuedReplayTask

FSceneViewExtensionBase

FDefaultStereoLayers

FDefaultXRCamera

FMotionDelayClient

UMotionControllerComponent::FViewExtension

FSCSEditorTreeNode

FSCSEditorTreeNodeComponentBase

FSCSEditorTreeNodeComponent

FSCSEditorTreeNodeInstanceAddedComponent

FSCSEditorTreeNodeInstancedInheritedComponent

FSCSEditorTreeNodeRootActor

FSCSEditorTreeNodeSeparator

FSectionList

FShaderFormatsPropertyDetails

FSharedOutlinerData

FSlateDrawLayerHandle

FSlateDynamicImageBrush

FSlateHyperlinkRun

FSlateImageRun

FSlateRenderDataHandle

FSlateTextRun

FSlatePasswordRun

FSlateWidgetRun

FStreamableHandle

FStringTable

FTabInfo

FTabManager

FGlobalTabmanager

FProxyTabmanager

FTabManager::FLayout

FTabManager::FLayoutNode

FTabManager::FSplitter

FTabManager::FArea

FTabManager::FStack

FTextLayout

FSlateTextLayout

FThumbnailSection

FViewportThumbnailSection

FTokenizedMessage

FTrackEditorThumbnail

FTreeMapNodeData

FUICommandList

FUICommandList_Pinnable

FUniqueNetId

FUniqueNetIdString

FWidgetTemplate

FWorkflowTabFactory

FCompilerResultsSummoner

FDocumentTabFactory

FDocumentTabFactoryForObjects

FSelectionDetailsSummoner

FWorkspaceItem

FTabSpawnerEntry

IAssetTypeActions

FAssetTypeActions_Base

FAssetTypeActions_ClassTypeBase

FAssetTypeActions_Blueprint

FAssetTypeActions_CSVAssetBase

FAssetTypeActions_GameplayTagAssetBase

FAssetTypeActions_GeometryCache

FAssetTypeActions_SoundBase

IAsyncFileCacheTask

FAsyncDirectoryReader

FAsyncFileHasher

IAutomationLatentCommand

FAddStaticMeshCommand

FAITestCommand_PerformTest

FAITestCommand_SetUpTest

FAITestCommand_TearDownTest

FAITestCommand_WaitOneTick

FAITestCommand_WaitSeconds

FAutomationSpecBase::FAsyncLatentCommand

FAutomationSpecBase::FAsyncUntilDoneLatentCommand

FAutomationSpecBase::FSingleExecuteLatentCommand

FAutomationSpecBase::FUntilDoneLatentCommand

FBuildLightingCommand

FChangeViewportToFirstAvailableBookmarkCommand

FCloseAllAssetEditorsCommand

FDelayedFunctionLatentCommand

FDeleteDirCommand

FEditorLoadMap

FEndPlayMapCommand

FFunctionLatentCommand

FLaunchOnCommand

FOpenEditorForAssetCommand

FSaveLevelCommand

FStartFTestOnMap

FStartFTestsOnMap

FStartPIECommand

FThreadedAutomationLatentCommand

FTriggerFTest

FTriggerFTests

FUndoRedoCommand

FUntilCommand

FWaitForFTestsToFinish

FWaitForShadersToFinishCompiling

FWaitToFinishBuildDeployCommand

FWaitToFinishCookByTheBookCommand

IAutomationNetworkCommand

IAutomationReport

IClassTypeActions

FClassTypeActions_Base

IDetailCustomization

FClothCreateSettingsCustomization

FInternationalizationSettingsModelDetails

FMaterialShaderQualitySettingsCustomization

FMovieSceneSectionDetailsCustomization

FSpeedTreeImportDataDetails

IDetailRootObjectCustomization

IEditorModeFactory

FEditorModeFactory

FPhysicsManipulationEdModeFactory

IGameLayer

IHttpRequest

FHttpRequestImpl

FHttpRequestAdapterBase

FRequest

IKeyArea

ILocalizationServiceOperation

FConnectToProvider

FDownloadLocalizationTargetFile

FUploadLocalizationTargetFile

ILocalizationServiceRevision

ILocalizationServiceState

IMessageSanitizer

IMessageToken

FActionToken

FAssetNameToken

FDocumentationToken

FFbxErrorToken

FMapErrorToken

FEdGraphToken

FImageToken

FSeverityToken

FTextToken

FTutorialToken

FUObjectToken

FURLToken

IMovieSceneBlendingActuator

TMovieSceneBlendingActuator

TPropertyActuator

INetDeltaBaseState

FNetFastTArrayBaseState

IOnlineTournament

IOnlineTournamentDetails

IOnlineTournamentMatchDetails

IOnlineTournamentParticipantDetails

IOnlineTournamentTeamDetails

IPluginWizardDefinition

IPropertyHandle

IPropertyTypeCustomization

FCurveTableCustomizationLayout

FFrameNumberDetailsCustomization

FGuidStructCustomization

FMovieSceneEventCustomization

FMovieSceneObjectBindingIDCustomization

FSlateBrushStructCustomization

FSlateFontInfoStructCustomization

IStructCustomization

ISceneOutlinerColumn

ISequencer

ISequenceRecorderExtender

ISkeletonTreeItem

FSkeletonTreeItem

ISlate3DRenderer

ISourceCodeNavigationHandler

ISourceControlLabel

ISourceControlOperation

FSourceControlOperationBase

FCheckIn

FCheckOut

FConnect

FCopy

FDelete

FMarkForAdd

FResolve

FRevert

FSync

FUpdateStatus

ISourceControlRevision

ISourceControlState

ITreeItem

FActorTreeItem

FFolderTreeItem

FWorldTreeItem

IViewportLayoutEntity

IVoiceCapture

IVoiceDecoder

IVoiceEncoder

IWorldTreeItem

SGameLayerManager::FPlayerLayer

SWidget

SCompoundWidget

IAnimationSequenceBrowser

IDetailsView

IDistributionCurveEditor

ILevelEditor

IObjectNameEditableTextBox

IPersonaViewport

IPinnedCommandList

ISceneOutliner

ISinglePropertyView

ISkeletonTree

ISocketManager

IStatsViewer

ITimeSlider

ITransportControl

SAboutScreen

SAdvancedPreviewDetailsTab

SAnimationCompressionPanel

SAnimationRemapAssets

SAnimationRemapSkeleton

SAppIconWidget

SAssetSearchBox

SBackgroundBlur

SBarVisualizer

SBlueprintDiff

SBlueprintRevisionMenu

SBoneMappingBase

SBoneSelectionWidget

SBoneTreeMenu

SBorder

SBuildProgressWidget

SButton

SHyperlink

SRichTextHyperlink

SCarouselNavigationButton::SPeekBorder

SDockTab

SEditableTextBox

SSearchBox

SErrorText

SExpandableButton

SGraphEditorActionMenu

SGraphEditorActionMenuAI

SGraphPin

SGraphPinAI

SGraphPinBool

SGraphPinColor

SGraphPinExec

SGraphPinNameList

SGraphPinDataTableRowName

SGraphPinNum

SGraphPinInteger

SGraphPinObject

SGraphPinString

SGraphPinVector

SGraphPinVector2D

SGraphPinVector4

SHeaderRow

SMultiLineEditableTextBox

SScrollBar

SSeparator

STableRow

SComboRow

SMultiColumnTableRow

SAssetEntryRow

SBoneMappingListRow

SBonePairRow

SEventItem

SOptionTableRow

SSCS_RowWidget

SSCS_RowWidget_ActorRoot

SSCS_RowWidget_Separator

SMultiSelectTableRow

SBreadcrumbTrail

SCarouselNavigationBar

SCarouselNavigationButton

SCheckBox

SClassPickerDialog

SClassPropertyEntryBox

SColorGradingPicker

SColorPicker

SColorThemeBar

SColorThemesViewer

SColorTrash

SCommentBubble

SComplexGradient

SContentReference

SCreateAssetFromObject

SCreateClothingSettingsPanel

SCreditsScreen

SCSVImportOptions

SCulturePicker

SCurveEditor

SCurveEditorPanel

SDecoratedEnumCombo

SDefaultGraphActionWidget

SDeleteAssetsDialog

SDirectoryPicker

SDocumentationToolTip

SDropTarget

SAssetDropTarget

SEditableComboBox

SEditableLabel

SEditorViewport

SBasePoseViewport

SLevelViewport

SEditorViewportToolBarButton

SEditorViewportToolbarMenu

SEditorViewportViewMenu

SErrorHint

SEventsTree

SExpandableArea

SExpanderArrow

SExternalImageReference

SFilePathPicker

SFilterableObjectList

SFindInBlueprints

SFindInMaterial

SFrameRateEntryBox

SFrameRatePicker

SFxWidget

SGameLayerManager

SGenericDialogWidget

SGlobalPlayWorldActions

SGraphActionMenu

SGraphEditor

SGraphPalette

SGraphPaletteItem

SGraphPreviewer

SHyperlinkLaunchURL

SInlineEditableTextBlock

SInputKeySelector

SInvalidationPanel

SKeyEditInterface

SKeySelector

SKismetInspector

SKismetLinearExpression

SLayerHandle

SLevelOfDetailBranchNode

SListViewSelectorDropdownMenu

SLogWidget

SMaterialSlotWidget

SMatineeRecorder

SMenuOwner

SMultiBoxWidget

SMiniCurveEditor

SModeWidget

SMultiBlockBaseWidget

SToolBarButtonBlock

SToolBarComboButtonBlock

SMultipleOptionTable

SNameComboBox

SNodeTitle

SNotificationItem

SNotificationList

SNumericDropDown

SNumericEntryBox

SObjectPropertyEntryBox

SObjectWidget

SObjectTableRow

SOutputLogDialog

SPerPlatformPropertiesWidget

SPinComboBox

SPinTypeSelector

SPlatformSetupMessage

SPListEditorPanel

SPopup

SPoseAssetNameWidget

SProperty

SReferenceTree

SRemapFailures

SResetToDefaultMenu

SRetainerWidget

SRotatorInputBox

SScalabilitySettings

SScaleBox

SScrollBorder

SScrollBox

SScrubControlPanel

SScrubWidget

SSCSEditor

SSettingsEditorCheckoutNotice

SSimpleGradient

SSimplePreLoadScreenWidget

SSingleObjectDetailsPanel

SSkeletonBoneRemoval

SSkeletonSelectorWindow

SSkeletonWidget

SSkeletonCompareWidget

SSkeletonListWidget

SSpinBox

SSubMenuHandler

SSuggestionTextBox

STableViewBase

SListView

STileView

STreeView

SSCSEditorDragDropTree

STextComboBox

STextComboPopup

STextEntryPopup

STextPropertyEditableStringTableReference

STextPropertyEditableTextBox

SThemeColorBlock

SThrobber

STimecodeProvider

STimeline

SToolTip

SUserWidget

SVectorInputBox

SViewport

SViewportToolBar

SCommonEditorViewportToolbarBase

STransformViewportToolBar

SViewportToolBarComboMenu

SViewportToolBarIconMenu

SVolumeControl

SWidgetCarousel

SWidgetCarouselWithNavigation

SWindow

SCreateAnimationAssetDlg

SDlgPickAssetPath

SDlgPickPath

SLogWindow

SSelectFolderDlg

SVirtualWindow

SWindowTitleBar

SWizard

SWorldWidgetScreenLayer

SEditableText

SLeafWidget

SCircularThrobber

SColorBlock

SColorGradientEditor

SColorGradingWheel

SColorSpectrum

SColorWheel

SGraphBar

SImage

SSpinningImage

SMeshWidget

SProgressBar

SSlider

SSpacer

FDetailWidgetDecl::SInvalidDetailWidget

STextBlock

STimecode

STreeMap

SVirtualJoystick

SVirtualKeyboardEntry

SMultiLineEditableText

SPanel

SBox

SEnableBox

SSafeZone

SBoxPanel

SHorizontalBox

SHeader

SVerticalBox

SDragAndDropVerticalBox

SCanvas

SConstraintCanvas

SDPIScaler

SGridPanel

SMenuAnchor

SComboButton

SComboBox

SComponentClassCombo

SPopupErrorText

SNodePanel

SGraphPanel

SNodePanel::SNode

SGraphNode

SGraphNodeAI

SGraphNodeDefault

SGraphNodeKnot

SGraphNodeK2Base

SGraphNodeK2Composite

SGraphNodeK2Default

SGraphNodeK2Event

SGraphNodeResizable

SGraphNodeComment

SGraphNodeDocumentation

SOverlay

SResponsiveGridPanel

SScissorRectBox

SScrollBarTrack

SSplitter

SSplitter2x2

SThemeColorBlocksBar

STooltipPresenter

SUniformGridPanel

SWidgetSwitcher

SWindowTitleBarArea

SWrapBox

SRichTextBlock

SWeakWidget

TDelegateFilter

TFilterCollection

FOutlinerFilters

TTextFilter

Syntax

template<class ObjectType, ESPMode Mode>
class TSharedFromThis

Remarks

Derive your class from TSharedFromThis to enable access to a TSharedRef directly from an object instance that's already been allocated. Use the optional Mode template argument for thread-safety.

Constructors

Name Description

Protected function

TSharedFromThis()

Hidden stub constructor

Protected function

TSharedFromThis

(
    TSharedFromThis const&
)

Hidden stub copy constructor

Destructors

Name Description

Protected function

~TSharedFromThis()

Hidden destructor

Functions

Name Description

Public function

TSharedRef < ...

 

AsShared()

Provides access to a shared reference to this object.

Public function

TSharedRef < ...

 

AsShared()

Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created.

Public function

bool

 

DoesSharedInstanceExist()

Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared).

Protected function Static

TSharedRef < ...

 

SharedThis

(
    OtherType* ThisPtr
)

Provides access to a shared reference to an object, given the object's 'this' pointer.

Protected function Static

TSharedRef < ...

 

SharedThis

(
    const OtherType* ThisPtr
)

Provides access to a shared reference to an object, given the object's 'this' pointer.

Public function

void

 

UpdateWeakReferenceInternal

(
    TSharedPtr < SharedPtrType, Mode > c...,
    OtherType* InObject
)

INTERNAL USE ONLY Do not call this method.

Public function

void

 

UpdateWeakReferenceInternal

(
    TSharedRef < SharedRefType, Mode > c...,
    OtherType* InObject
)

INTERNAL USE ONLY Do not call this method.

Operators

Name Description

Protected function

TSharedFromT ...

 

operator=

(
    TSharedFromThis const&
)

Hidden stub assignment operator

References

Module

Core

Header

Runtime/Core/Public/Templates/SharedPointer.h