|
CGraph
|
基于内嵌类TaskBased和TaskDerided,将传入的func完美转发成TaskDerided的func_成员; TaskDerided是UTask的impl_成员,运行UTask实际上就是调用impl_->run也就是调用func_() More...
#include <UTask.h>


Classes | |
| struct | TaskBased |
| struct | TaskDerided |
Public Member Functions | |
| template<typename F > | |
| UTask (F &&func, int priority=0) | |
| CVoid | operator() () |
| UTask ()=default | |
| UTask (UTask &&task) noexcept | |
| UTask & | operator= (UTask &&task) noexcept |
| CBool | operator> (const UTask &task) const |
| CBool | operator< (const UTask &task) const |
Public Member Functions inherited from CStruct | |
| virtual | ~CStruct ()=default |
Private Attributes | |
| std::unique_ptr< TaskBased > | impl_ = nullptr |
| CInt | priority_ = 0 |
基于内嵌类TaskBased和TaskDerided,将传入的func完美转发成TaskDerided的func_成员; TaskDerided是UTask的impl_成员,运行UTask实际上就是调用impl_->run也就是调用func_()
|
inline |
|
default |
|
inlinenoexcept |
|
inline |
|
private |
|
private |