Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
Utility class to transform some Input data into an Output data asynchronously.
TAsyncTransform will only hold on to the input data for as long as it is required to construct the output. Once the output is prepared, the input data will be released.
TAsyncTransform and the input data can be destroyed without waiting for the operation to complete.
TAsyncTransform also provides utilities to chain multiple transforms together. Once the result of the prerequisite transform is ready it will chain into the subsequent. The subsequent output data will only be ready when both transforms are completed.
| Name | TAsyncTransform |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionModifierUtils.h |
| Include Path | #include "MeshPartitionModifierUtils.h" |
Syntax
template<typename OutputT>
class TAsyncTransform
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncTransform
(
TSharedRef< const InputT > InData, |
MeshPartitionModifierUtils.h | ||
TAsyncTransform
(
InputT InData, |
MeshPartitionModifierUtils.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AsyncData | TSharedRef< OutputT > | MeshPartitionModifierUtils.h | ||
| AsyncInitTask | const Tasks::FTask | MeshPartitionModifierUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncTransform< ChainedOutputT > Chain
(
TUniqueFunction< ChainedOutputT(const OutputT&)>&& AsyncInitFunc |
MeshPartitionModifierUtils.h | ||
UE::Tasks::FTask GetAsyncInitTask() |
MeshPartitionModifierUtils.h | ||
const OutputT & GetResult() |
MeshPartitionModifierUtils.h | ||
bool IsCompleted() |
MeshPartitionModifierUtils.h |