YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
消息。 更多...
#include <ymsg.h>
Public 成员函数 | |
yconstfn | Message (ID msg_id=0) |
构造:使用消息标识和空消息内容。 | |
Message (const Message &)=default | |
复制构造:默认实现。 | |
Message (Message &&)=default | |
转移构造:默认实现。 | |
Message & | operator= (const ValueObject &c) |
Message & | operator= (ValueObject &&c) ynothrow |
成员赋值:使用值类型对象。 | |
Message & | operator= (Message msg) ynothrow |
bool | operator! () const ynothrow |
判断无效性。 | |
operator bool () const ynothrow | |
判断有效性。 | |
ID | GetMessageID () const ynothrow |
取消息标识。 | |
const ValueObject & | GetContent () const ynothrow |
取消息内容。 | |
void | Swap (Message &) ynothrow |
Message (ID, const ValueObject &) | |
构造:使用消息标识和消息内容。 | |
Message (ID, ValueObject &&) | |
Private 属性 | |
ID | id |
消息标识。 | |
ValueObject | content |
友元 | |
class | MessageQueue |
bool | operator== (const Message &, const Message &) |
比较:相等关系。 | |
bool | operator< (const Message &, const Message &) |
消息优先级比较函数。 | |
YSLib::Messaging::Message::Message | ( | ID | , |
const ValueObject & | |||
) |
构造:使用消息标识和消息内容。
YSLib::Messaging::Message::Message | ( | ID | , |
ValueObject && | |||
) |
|
default |
复制构造:默认实现。
|
default |
转移构造:默认实现。
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
void Message::Swap | ( | Message & | msg | ) |
|
friend |
|
private |