YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
程序实例。 更多...
#include <yapp.h>
Public 成员函数 | |
Application () | |
无参数构造。 | |
virtual | ~Application () |
析构:释放 Shell 所有权和其它资源。 | |
shared_ptr< Shell > | GetShellHandle () const ynothrow |
取得线程空间中当前运行的 Shell 的句柄。 | |
void | OnGotMessage (const Message &) override |
处理消息:分发消息。 | |
bool | Switch (shared_ptr< Shell > &) ynothrow |
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。 | |
bool | Switch (shared_ptr< Shell > &&h) ynothrow |
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。 | |
Public 属性 | |
MessageQueue | Queue |
主消息队列:在程序实例中实现以保证单线程。 | |
std::function< void()> | ApplicationExit |
资源释放函数。 | |
Protected 属性 | |
shared_ptr< Shell > | hShell |
当前 Shell 句柄:指示当前线程空间中运行的 Shell 。 | |
|
virtual |
|
inline |
|
override |
bool YSLib::Application::Switch | ( | shared_ptr< Shell > & | ) |
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。
|
inline |
std::function<void()> YSLib::Application::ApplicationExit |
|
protected |
MessageQueue YSLib::Application::Queue |