mFrame
載入中...
搜尋中...
無符合項目
RunnableEvent.h
1
7#ifndef MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE
8#define MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../func/Runnable.h"
18#include "./../lang/Object.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace ufm::func {
24 class RunnableEvent;
25} // namespace ufm::func
26
27/* ***************************************************************************************
28 * Class/struct/Struct
29 */
30
39 /* *************************************************************************************
40 * Variable
41 */
42 private:
47 void (*vFunction)(void);
48
49 /* *************************************************************************************
50 * Abstract Method
51 */
52
53 /* *************************************************************************************
54 * Construct Method
55 */
56 public:
66 RunnableEvent(void (*function)(void));
67
74 virtual ~RunnableEvent(void) override;
75
76 /* *************************************************************************************
77 * Operator Method
78 */
79
80 /* *************************************************************************************
81 * Override Method - ufm::func::Runnable
82 */
83 public:
91 virtual void run(void) override;
92
93 /* *************************************************************************************
94 * Public Method
95 */
96
97 /* *************************************************************************************
98 * Protected Method
99 */
100
101 /* *************************************************************************************
102 * Private Method
103 */
104
105 /* *************************************************************************************
106 * Static Variable
107 */
108
109 /* *************************************************************************************
110 * Static Method
111 */
112};
113
114/* ***************************************************************************************
115 * End of file
116 */
117
118#endif /* MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE */
可執行事件類別
Definition RunnableEvent.h:38
virtual void run(void) override
實現 Runnable 介面的 run 方法
virtual ~RunnableEvent(void) override
解構 RunnableEvent 物件
RunnableEvent(void(*function)(void))
建構一個新的 RunnableEvent 物件
物件基底類別
Definition Object.h:63
Definition BiConsumer.h:22
[Interface] 可執行函數式介面
Definition Runnable.h:40