UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TRawMessageHandler< MessageType, HandlerType > Class Template Reference

#include <MessageHandlers.h>

+ Inheritance diagram for TRawMessageHandler< MessageType, HandlerType >:

Public Types

typedef void(HandlerType::* FuncType) (const MessageType &, const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &)
 

Public Member Functions

 TRawMessageHandler (HandlerType *InHandler, FuncType InFunc)
 
 ~TRawMessageHandler ()
 
virtual void HandleMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context) override
 
- Public Member Functions inherited from IMessageHandler
virtual ~IMessageHandler ()
 

Detailed Description

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

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

Parameters
MessageTypeThe type of message to handle.
HandlerTypeThe type of the handler class.

Member Typedef Documentation

◆ FuncType

template<typename MessageType , typename HandlerType >
typedef void(HandlerType::* TRawMessageHandler< MessageType, HandlerType >::FuncType) (const MessageType &, const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &)

Type definition for function pointers that are compatible with this TRawMessageHandler.

Constructor & Destructor Documentation

◆ TRawMessageHandler()

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

Creates and initializes a new message handler.

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

◆ ~TRawMessageHandler()

template<typename MessageType , typename HandlerType >
TRawMessageHandler< MessageType, HandlerType >::~TRawMessageHandler ( )
inline

Virtual destructor.

Member Function Documentation

◆ HandleMessage()

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

Handles the specified message.

Parameters
ContextThe context of the message to handle.

Implements IMessageHandler.


The documentation for this class was generated from the following file: