rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::message_base_t Struct Reference

Base class for rotor message. More...

#include <message.h>

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

Public Member Functions

 message_base_t (const void *type_index_, const address_ptr_t &addr)
 constructor which takes destination address
 

Public Attributes

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
 

Detailed Description

Base class for rotor message.

The base class contains destination address (in the form of intrusive pointer to address_t) and possibility to detect final message type.

The actual message payload meant to be provided by derived classes

Member Data Documentation

◆ type_index

const void* rotor::message_base_t::type_index

unique message type pointer.

The unique message type pointer is used to runtime check message type match when the message is delivered to subscribers.


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