Navigation
API > API/Editor > API/Editor/SequencerCore
Inheritance Hierarchy
- TViewModelConversions
- TViewModelPtr
References
| Module | SequencerCore |
| Header | /Engine/Source/Editor/SequencerCore/Public/SequencerCoreFwd.h |
| Include | #include "SequencerCoreFwd.h" |
Syntax
template<typename T>
struct TViewModelPtr : public UE::Sequencer::TViewModelConversions< T >
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TViewModelPtrStorage< T > | Storage | ||
| friend | TViewModelConversions< T > |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TViewModelPtr
(
const TViewModelPtr& |
|||
TViewModelPtr
(
TViewModelPtr&& |
|||
TViewModelPtr
(
const TViewModelPtr< OtherType >& In |
|||
TViewModelPtr
(
nullptr_t |
Construction from a nullptr | ||
TViewModelPtr
(
const TSharedPtr< ModelType >& InModel |
Construction from a shared ptr | ||
TViewModelPtr
(
const TSharedRef< ModelType >& InModel |
Construction from a shared ptr | ||
TViewModelPtr
(
TSharedPtr< ViewModelType > InModel, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< ViewModelType > | AsModel () |
Explicitly access the view model as a regular shared pointer | |
| T * | Get () |
Member access operator giving access to the wrapped view model | |
| TImplicitViewModelCast< ViewModelType > | ImplicitCast () |
Return a proxy type that is able to implicitly convert this view model to any other TViewModel |
|
| TImplicitViewModelCastChecked< ViewModelType > | Return a proxy type that is able to implicitly convert this view model to any other TViewModel |
||
| bool | IsValid () |
||
| void | Reset () |
Reset this view model pointer back to its default (null) state | |
| TSharedRef< T > | ToSharedRef () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Check whether this ptr is valid (non-null) | |||
| T & | operator* () |
Dereference operator giving access to the wrapped view model | |
| TViewModelPtr & | operator=
(
const TSharedRef< ModelType >& InModel |
Assignment from a shared ptr | |
| TViewModelPtr & | operator=
(
const TSharedPtr< ModelType >& InModel |
Assignment from a shared ptr | |
| TViewModelPtr & | operator=
(
nullptr_t |
Assignment from a nullptr | |
| TViewModelPtr & | operator=
(
const TViewModelPtr< OtherType >& In |
||
| TViewModelPtr & | operator=
(
TViewModelPtr&& |
||
| TViewModelPtr & | operator=
(
const TViewModelPtr& |
||
| T * | operator-> () |
Member access operator giving access to the wrapped view model |
Typedefs
| Name | Description |
|---|---|
| ViewModelType |