rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::message_t< T > Struct Template Reference

the generic message meant to hold user-specific payload More...

#include <message.h>

Inheritance diagram for rotor::message_t< T >:
rotor::message_base_t

Classes

struct  visitor_t
 struct visitor_t concrete message type visitor More...
 

Public Types

using payload_t = T
 alias for payload type
 

Public Member Functions

template<typename... Args>
 message_t (const address_ptr_t &addr, Args &&...args)
 forwards args for payload construction
 
- Public Member Functions inherited from rotor::message_base_t
 message_base_t (const void *type_index_, const address_ptr_t &addr)
 constructor which takes destination address
 

Public Attributes

payload
 user-defined payload
 
- Public Attributes inherited from rotor::message_base_t
const void * type_index
 unique message type pointer.
 
address_ptr_t address
 message destination address
 
address_ptr_t next_route
 post-delivery destination address, see make_routed_message() for usage
 

Static Public Attributes

static const void * message_type = message_support::register_type(typeid(message_t<T>))
 unique per-message-type pointer used for routing
 

Detailed Description

template<typename T>
struct rotor::message_t< T >

the generic message meant to hold user-specific payload

Template Parameters
Tpayload type

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