YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
消息。 更多...
#include <ymsg.h>
Public 成员函数 | |
Message (ID msg_id=0) | |
构造:使用消息标识和空消息内容。 更多... | |
DefDeCopyCtor (Message) DefDeMoveCtor(Message) PDefHOp(Message & | |
复制构造:默认实现。 更多... | |
const ValueObject &c ynothrow | ImplRet (content=c,*this) PDefHOp(Message & |
成员赋值:使用值类型对象。 更多... | |
const ValueObject &c ynothrow ValueObject &&c ynothrow | ImplRet (content=std::move(c),*this) PDefHOp(Message & |
const ValueObject &c ynothrow ValueObject &&c ynothrow Message msg ynothrow | ImplRet (msg.swap(*this),*this) PDefHOp(bool |
判断无效性。 更多... | |
const ValueObject &c ynothrow ValueObject &&c ynothrow Message msg ynothrow const ynothrow | ImplRet (!bool(*this)) YF_API friend bool operator |
比较:相等关系。 更多... | |
DefCvt (const ynothrow, bool, id) DefGetter(const ynothrow | |
判断有效性。 更多... | |
id | DefGetter (const ynothrow, const ValueObject &, Content, content) void swap(Message &) ynothrow |
< 取消息标识。 更多... | |
Message (ID m, const ValueObject &vo) | |
构造:使用消息标识和消息内容。 更多... | |
Message (ID m, ValueObject &&vo) ynothrow | |
Public 属性 | |
ID | |
MessageID | |
Private 属性 | |
ID | id |
消息标识。 更多... | |
ValueObject | content |
友元 | |
class | MessageQueue |
相关函数 | |
(请注意: 这些不是成员函数.) | |
#define | DefSwap(_q, _t) |
消息队列。 更多... | |
|
inline |
|
inline |
|
inline |
YSLib::Messaging::Message::DefDeCopyCtor | ( | Message | ) |
复制构造:默认实现。
转移构造:默认实现。
id YSLib::Messaging::Message::DefGetter | ( | const ynothrow | , |
const ValueObject & | , | ||
Content | , | ||
content | |||
) |
< 取消息标识。
const ValueObject& c ynothrow YSLib::Messaging::Message::ImplRet | ( | content | = c , |
* | this | ||
) |
成员赋值:使用值类型对象。
const ValueObject& c ynothrow ValueObject&& c ynothrow YSLib::Messaging::Message::ImplRet | ( | content | = std::move(c) , |
* | this | ||
) |
const ValueObject& c ynothrow ValueObject&& c ynothrow Message msg ynothrow YSLib::Messaging::Message::ImplRet | ( | msg.swap * | this, |
* | this | ||
) |
判断无效性。
const ValueObject& c ynothrow ValueObject&& c ynothrow Message msg ynothrow const ynothrow YSLib::Messaging::Message::ImplRet | ( | !bool * | this | ) |
比较:相等关系。
消息队列。
迭代器。
无参数构造:默认实现。
取消息队列中消息的最大优先级。
合并消息队列:移动指定消息队列中的所有消息至此消息队列中。
从消息队列中取优先级最高的消息存至 msg 中。
丢弃消息队列中优先级最高的消息。
若消息有效,以指定优先级插入至消息队列中。
若消息有效,以指定优先级插入至消息队列中。
移除不大于指定优先级的消息。
|
private |
|
private |