YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Messaging::Message类 参考

消息。 更多...

#include <ymsg.h>

YSLib::Messaging::Message 的协作图:

Public 成员函数

yconstfn Message (ID msg_id=0)
 构造:使用消息标识和空消息内容。
 
 Message (const Message &)=default
 复制构造:默认实现。
 
 Message (Message &&)=default
 转移构造:默认实现。
 
Messageoperator= (const ValueObject &c)
 
Messageoperator= (ValueObject &&c) ynothrow
 成员赋值:使用值类型对象。
 
Messageoperator= (Message msg) ynothrow
 
bool operator! () const ynothrow
 判断无效性。
 
 operator bool () const ynothrow
 判断有效性。
 
ID GetMessageID () const ynothrow
 取消息标识。
 
const ValueObjectGetContent () 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 &)
 消息优先级比较函数。
 

详细描述

消息。

警告
非虚析构。
自从
build 145

在文件 ymsg.h62 行定义.

构造及析构函数说明

yconstfn YSLib::Messaging::Message::Message ( ID  msg_id = 0)
inline

构造:使用消息标识和空消息内容。

自从
build 368

在文件 ymsg.h76 行定义.

YSLib::Messaging::Message::Message ( ID  ,
const ValueObject  
)

构造:使用消息标识和消息内容。

自从
build 320
build 368
YSLib::Messaging::Message::Message ( ID  ,
ValueObject &&   
)
YSLib::Messaging::Message::Message ( const Message )
default

复制构造:默认实现。

YSLib::Messaging::Message::Message ( Message &&  )
default

转移构造:默认实现。

自从
build 368

成员函数说明

const ValueObject& YSLib::Messaging::Message::GetContent ( ) const
inline

取消息内容。

在文件 ymsg.h152 行定义.

ID YSLib::Messaging::Message::GetMessageID ( ) const
inline

取消息标识。

在文件 ymsg.h151 行定义.

YSLib::Messaging::Message::operator bool ( ) const
inlineexplicit

判断有效性。

自从
build 319

在文件 ymsg.h149 行定义.

bool YSLib::Messaging::Message::operator! ( ) const
inline

判断无效性。

自从
build 319

在文件 ymsg.h130 行定义.

Message& YSLib::Messaging::Message::operator= ( const ValueObject c)
inline

在文件 ymsg.h100 行定义.

Message& YSLib::Messaging::Message::operator= ( ValueObject &&  c)
inline

成员赋值:使用值类型对象。

自从
build 296

在文件 ymsg.h110 行定义.

Message& YSLib::Messaging::Message::operator= ( Message  msg)
inline

在文件 ymsg.h120 行定义.

void Message::Swap ( Message msg)

在文件 ymsg.cpp43 行定义.

参考 std::swap().

函数调用图:

友元及相关函数文档

friend class MessageQueue
friend

在文件 ymsg.h64 行定义.

bool operator< ( const Message ,
const Message  
)
friend

消息优先级比较函数。

自从
build 272
bool operator== ( const Message ,
const Message  
)
friend

比较:相等关系。

类成员变量说明

ValueObject YSLib::Messaging::Message::content
private

在文件 ymsg.h68 行定义.

ID YSLib::Messaging::Message::id
private

消息标识。

在文件 ymsg.h67 行定义.


该类的文档由以下文件生成: