|
simple thread
|
interthread type erased message container More...
#include <message.hpp>
Public Member Functions | |
| const std::size_t | id () const |
| an unsigned integer representing message's intended operation More... | |
| st::data & | data () |
| optional type erased payload data | |
Static Public Member Functions | |
| static message | make (message msg) |
| convenience function for templating More... | |
| static message | make (std::size_t id, st::data &&d) |
| construct a message More... | |
| template<typename T > | |
| static message | make (std::size_t id, T &&t) |
| construct a message More... | |
| static message | make (std::size_t id) |
| construct a message More... | |
| static message | make () |
| construct a message More... | |
interthread type erased message container
this object is not mutex locked.
|
inline |
an unsigned integer representing message's intended operation
an id can trivially represent an enumeration, which can represent a specific request, response, or notification operation.
|
inlinestatic |
construct a message
st::message convenience function for templating
| msg | st::message object to immediately return |
st::message object passed as argument
|
inlinestatic |
construct a message
| id | an unsigned integer representing which type of message |
st::message construct a message
| id | an unsigned integer representing which type of message |
| t | arbitrary typed data to be stored as the message data |
st::message
|
inlinestatic |
construct a message
| id | an unsigned integer representing which type of message |
| t | arbitrary typed data to be stored as the message data |
st::message