engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TAsyncResult< ResultType > 模板类 参考

Template for asynchronous return values. 更多...

#include <AsyncResult.h>

Public 成员函数

const TFuture< ResultType > & GetFuture () const
 Gets the future that will hold the result. 更多...
 
TSharedPtr< IAsyncProgress > GetProgess () const
 Get an object that indicates the progress of the task that is computing the result. 更多...
 
TSharedPtr< IAsyncTask > GetTask () const
 Get the asynchronous task that is computing the result. 更多...
 
TAsyncResult & operator= (TAsyncResult &&Other)
 Move assignment operator.
 
 TAsyncResult ()
 Default constructor.
 
 TAsyncResult (const ResultType &Result)
 Creates and initializes a new instance with the given synchronous result value. 更多...
 
 TAsyncResult (TAsyncResult &&Other)
 Move constructor.
 
 TAsyncResult (TFuture< ResultType > &&InFuture, const TSharedPtr< IAsyncProgress > &InProgress, const TSharedPtr< IAsyncTask > &InTask)
 Creates and initializes a new instance 更多...
 

详细描述

template<typename ResultType>
class TAsyncResult< ResultType >

Template for asynchronous return values.

参数
ResultTypeThe return value's type.

构造及析构函数说明

◆ TAsyncResult() [1/2]

template<typename ResultType >
TAsyncResult< ResultType >::TAsyncResult ( const ResultType &  Result)
inline

Creates and initializes a new instance with the given synchronous result value.

参数
ResultThe result value to set.

◆ TAsyncResult() [2/2]

template<typename ResultType >
TAsyncResult< ResultType >::TAsyncResult ( TFuture< ResultType > &&  InFuture,
const TSharedPtr< IAsyncProgress > &  InProgress,
const TSharedPtr< IAsyncTask > &  InTask 
)
inline

Creates and initializes a new instance

参数
InFutureThe future to set.
InProgressThe progress object (optional).
InTaskThe task object object (optional).

成员函数说明

◆ GetFuture()

template<typename ResultType >
const TFuture< ResultType > & TAsyncResult< ResultType >::GetFuture ( ) const
inline

Gets the future that will hold the result.

返回
The future.

◆ GetProgess()

template<typename ResultType >
TSharedPtr< IAsyncProgress > TAsyncResult< ResultType >::GetProgess ( ) const
inline

Get an object that indicates the progress of the task that is computing the result.

返回
Task progress object, or nullptr if not available.

◆ GetTask()

template<typename ResultType >
TSharedPtr< IAsyncTask > TAsyncResult< ResultType >::GetTask ( ) const
inline

Get the asynchronous task that is computing the result.

返回
Task object, or nullptr if not available.

该类的文档由以下文件生成: