engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 所有成员列表
TRawMessageHandler< MessageType, HandlerType > 模板类 参考

Template for handlers of one specific message type (via raw function pointers). 更多...

#include <MessageHandlers.h>

+ 类 TRawMessageHandler< MessageType, HandlerType > 继承关系图:

Public 类型

typedef void(HandlerType::* FuncType) (const MessageType &, const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &)
 Type definition for function pointers that are compatible with this TRawMessageHandler.
 

Public 成员函数

virtual void HandleMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context) override
 Handles the specified message. 更多...
 
 TRawMessageHandler (HandlerType *InHandler, FuncType InFunc)
 Creates and initializes a new message handler. 更多...
 
 ~TRawMessageHandler ()
 Virtual destructor.
 
- Public 成员函数 继承自 IMessageHandler
virtual void HandleMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context)=0
 Handles the specified message. 更多...
 
virtual ~IMessageHandler ()
 Virtual destructor.
 

详细描述

template<typename MessageType, typename HandlerType>
class TRawMessageHandler< MessageType, HandlerType >

Template for handlers of one specific message type (via raw function pointers).

参数
MessageTypeThe type of message to handle.
HandlerTypeThe type of the handler class.

构造及析构函数说明

◆ TRawMessageHandler()

template<typename MessageType , typename HandlerType >
TRawMessageHandler< MessageType, HandlerType >::TRawMessageHandler ( HandlerType *  InHandler,
FuncType  InFunc 
)
inline

Creates and initializes a new message handler.

参数
InHandlerThe object that will handle the messages.
InFuncThe object's message handling function.

成员函数说明

◆ HandleMessage()

template<typename MessageType , typename HandlerType >
virtual void TRawMessageHandler< MessageType, HandlerType >::HandleMessage ( const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &  Context)
inlineoverridevirtual

Handles the specified message.

参数
ContextThe context of the message to handle.

实现了 IMessageHandler.


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