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

Template for shared futures. 更多...

#include <Future.h>

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

Public 成员函数

ResultType Get () const
 Gets the future's result. 更多...
 
TSharedFuture & operator= (const TSharedFuture &Other)=default
 Copy assignment operator.
 
TSharedFuture & operator= (TSharedFuture &&Other)=default
 Move assignment operator.
 
 TSharedFuture ()
 Default constructor.
 
 TSharedFuture (const TSharedFuture &)=default
 Copy constructor.
 
 TSharedFuture (const typename BaseType::StateType &InState)
 Creates and initializes a new instance. 更多...
 
 TSharedFuture (TFuture< ResultType > &&Future)
 Creates and initializes a new instances from a future object. 更多...
 
 TSharedFuture (TSharedFuture &&)=default
 Move constructor.
 
 ~TSharedFuture ()
 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 TSharedFuture< ResultType >

Template for shared futures.

构造及析构函数说明

◆ TSharedFuture() [1/2]

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

Creates and initializes a new instance.

参数
InStateThe shared state to initialize from.

◆ TSharedFuture() [2/2]

template<typename ResultType >
TSharedFuture< ResultType >::TSharedFuture ( TFuture< ResultType > &&  Future)
inline

Creates and initializes a new instances from a future object.

参数
FutureThe future object to initialize from.

成员函数说明

◆ Get()

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

Gets the future's result.

返回
The result.

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