A message with dynamic payload. More...
#include <Message.hpp>
Public Member Functions | |
PayloadMessage () | |
Construct a message. More... | |
PayloadMessage (Core dest, T t, void *payload, size_t payload_size) | |
Construct a message. More... | |
PayloadMessage (const PayloadMessage &m)=delete | |
Not allowed. More... | |
PayloadMessage & | operator= (const PayloadMessage &m)=delete |
Not allowed. More... | |
PayloadMessage & | operator= (PayloadMessage &&m)=delete |
Not allowed. More... | |
PayloadMessage (PayloadMessage &&m)=default | |
virtual | ~PayloadMessage () |
void | set_payload (void *payload, size_t size) |
void | delete_payload_after_send () |
virtual void | reset () |
virtual const char * | typestr () |
T & | operator* () |
for Messages with modifiable contents. More... | |
T * | operator-> () |
Access message contents. More... | |
virtual const size_t | serialized_size () const |
How much storage do we need to send this message? More... | |
virtual const size_t | size () const |
virtual void | deliver_locally () |
virtual char * | serialize_to (char *p, size_t max_size) |
Copy this message into a buffer. More... | |
Static Public Member Functions | |
static char * | deserialize_and_call (char *t) |
These are used by the aggregator to send and receive messages. More... | |
A message with dynamic payload.
Storage for message contents is internal, but payload is stored externally. Destructor blocks until message is sent. Best used through message function.
Definition at line 161 of file Message.hpp.
|
inline |
Construct a message.
Definition at line 172 of file Message.hpp.
|
inline |
Construct a message.
dest | ID of destination core. |
t | Contents of message to send. |
payload | pointer to payload buffer |
payload_size | size of payload (in bytes) |
Definition at line 185 of file Message.hpp.
|
delete |
Not allowed.
|
default |
|
inlinevirtual |
Definition at line 201 of file Message.hpp.
|
inline |
Definition at line 212 of file Message.hpp.
|
inlinevirtual |
Definition at line 270 of file Message.hpp.
|
inlinestatic |
These are used by the aggregator to send and receive messages.
Deserialize and call one of these messages from a buffer. This is run on the remote machine.
t | address of message functor/contents in buffer |
Definition at line 257 of file Message.hpp.
|
inline |
for Messages with modifiable contents.
Don't use with lambdas.Access message contents.
Definition at line 230 of file Message.hpp.
|
inline |
Access message contents.
Definition at line 235 of file Message.hpp.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
inlinevirtual |
Definition at line 214 of file Message.hpp.
|
inlinevirtual |
Copy this message into a buffer.
Definition at line 279 of file Message.hpp.
|
inlinevirtual |
How much storage do we need to send this message?
Definition at line 242 of file Message.hpp.
|
inline |
Definition at line 206 of file Message.hpp.
|
inlinevirtual |
Definition at line 246 of file Message.hpp.
|
inlinevirtual |
Definition at line 221 of file Message.hpp.