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

Template for unshared futures. 更多...

#include <Future.h>

+ 类 TFuture< ResultType > 继承关系图:

Public 成员函数

ResultType Get () const
 Gets the future's result. 更多...
 
TFuture & operator= (TFuture &&Other)=default
 Move assignment operator.
 
TSharedFuture< ResultType > Share ()
 Moves this future's state into a shared future. 更多...
 
 TFuture ()
 Default constructor.
 
 TFuture (const typename BaseType::StateType &InState)
 Creates and initializes a new instance. 更多...
 
 TFuture (TFuture &&)=default
 Move constructor.
 
 ~TFuture ()
 Destructor.
 
- Public 成员函数 继承自 TFutureBase< ResultType >
bool IsReady () const
 Checks whether this future object has its value set. 更多...
 
bool IsValid () const
 Checks whether this future object has a valid state. 更多...
 
void Wait () const
 Blocks the calling thread until the future result is available. 更多...
 
bool WaitFor (const FTimespan &Duration) const
 Blocks the calling thread until the future result is available or the specified duration is exceeded. 更多...
 
bool WaitUntil (const FDateTime &Time) const
 Blocks the calling thread until the future result is available or the specified time is hit. 更多...
 

额外继承的成员函数

- Protected 成员函数 继承自 TFutureBase< ResultType >
const StateType & GetState () const
 Gets the shared state object. 更多...
 
auto Next (Func Continuation)
 Convenience wrapper for Then that set a completion callback that will be called once the future completes or immediately if already completed 更多...
 
TFutureBase & operator= (const TFutureBase &)=default
 Protected copy assignment
 
TFutureBase & operator= (TFutureBase &&)=default
 Protected move assignment
 
void Reset ()
 Reset the future. 更多...
 
 TFutureBase ()
 Default constructor.
 
 TFutureBase (const StateType &InState)
 Creates and initializes a new instance. 更多...
 
 TFutureBase (const TFutureBase &)=default
 Protected copy construction
 
 TFutureBase (TFutureBase &&)=default
 Protected move construction
 
auto Then (Func Continuation)
 Set a completion callback that will be called once the future completes or immediately if already completed 更多...
 
 ~TFutureBase ()
 Protected destructor.
 

详细描述

template<typename ResultType>
class TFuture< ResultType >

Template for unshared futures.

构造及析构函数说明

◆ TFuture()

template<typename ResultType >
TFuture< ResultType >::TFuture ( const typename BaseType::StateType &  InState)
inline

Creates and initializes a new instance.

参数
InStateThe shared state to initialize with.

成员函数说明

◆ Get()

template<typename ResultType >
ResultType TFuture< ResultType >::Get ( ) const
inline

Gets the future's result.

返回
The result.

◆ Share()

template<typename ResultType >
TSharedFuture< ResultType > TFuture< ResultType >::Share ( )
inline

Moves this future's state into a shared future.

返回
The shared future object.

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