Navigation
API > API/Editor > API/Editor/SequencerCore
Pointer type that wraps a shared view model pointer to provide implicit dynamic_cast style casting to any other view-model or extension. Implicit conversion is implemented through a proxy object so as to make the 'implicit' conversion somewhat explicit: FViewModelPtr ModelPtr = GetViewModel(); TSharedPtr
| Name | TViewModelPtr |
| Type | struct |
| Header File | /Engine/Source/Editor/SequencerCore/Public/SequencerCoreFwd.h |
| Include Path | #include "SequencerCoreFwd.h" |
| Source | /Engine/Source/Editor/SequencerCore/Public/MVVM/ViewModelPtr.h |
Syntax
template<typename T>
struct TViewModelPtr : public UE::Sequencer::TViewModelConversions< T >
Inheritance Hierarchy
- TViewModelConversions → TViewModelPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TViewModelPtr
(
const TSharedRef< ModelType >& InModel |
Construction from a shared ptr | MVVM/ViewModelPtr.h | |
| MVVM/ViewModelPtr.h | |||
TViewModelPtr
(
const TViewModelPtr& |
MVVM/ViewModelPtr.h | ||
TViewModelPtr
(
TViewModelPtr&& |
MVVM/ViewModelPtr.h | ||
TViewModelPtr
(
T* InViewModelType |
MVVM/ViewModelPtr.h | ||
TViewModelPtr
(
const TViewModelPtr< OtherType >& In |
MVVM/ViewModelPtr.h | ||
TViewModelPtr
(
TYPE_OF_NULLPTR |
Construction from a nullptr | MVVM/ViewModelPtr.h | |
TViewModelPtr
(
const TSharedPtr< ModelType >& InModel |
Construction from a shared ptr | MVVM/ViewModelPtr.h | |
TViewModelPtr
(
TSharedPtr< ViewModelType > InModel, |
MVVM/ViewModelPtr.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ViewModelType | typename std::conditional_t< std::is_const_v< T >, const FViewModel, FViewModel > | MVVM/ViewModelPtr.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< ViewModelType > AsModel() |
Explicitly access the view model as a regular shared pointer | MVVM/ViewModelPtr.h | |
T * Get() |
Member access operator giving access to the wrapped view model | MVVM/ViewModelPtr.h | |
TImplicitViewModelCast< ViewModelType > ImplicitCast() |
Return a proxy type that is able to implicitly convert this view model to any other TViewModel |
MVVM/ViewModelPtr.h | |
TImplicitViewModelCastChecked< ViewModelType > ImplicitCastChecked() |
MVVM/ViewModelPtr.h | ||
bool IsValid() |
MVVM/ViewModelPtr.h | ||
void Reset() |
Reset this view model pointer back to its default (null) state | MVVM/ViewModelPtr.h | |
TSharedRef< T > ToSharedRef() |
MVVM/ViewModelPtr.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Check whether this ptr is valid (non-null) | MVVM/ViewModelPtr.h | |
T & operator*() |
Dereference operator giving access to the wrapped view model | MVVM/ViewModelPtr.h | |
TViewModelPtr & operator=
(
const TSharedRef< ModelType >& InModel |
Assignment from a shared ptr | MVVM/ViewModelPtr.h | |
TViewModelPtr & operator=
(
const TSharedPtr< ModelType >& InModel |
Assignment from a shared ptr | MVVM/ViewModelPtr.h | |
TViewModelPtr & operator=
(
TYPE_OF_NULLPTR |
Assignment from a nullptr | MVVM/ViewModelPtr.h | |
TViewModelPtr & operator=
(
TViewModelPtr&& |
MVVM/ViewModelPtr.h | ||
TViewModelPtr & operator=
(
const TViewModelPtr< OtherType >& In |
MVVM/ViewModelPtr.h | ||
TViewModelPtr & operator=
(
const TViewModelPtr& |
MVVM/ViewModelPtr.h | ||
T * operator->() |
Member access operator giving access to the wrapped view model | MVVM/ViewModelPtr.h |