A standard message. More...
#include <Message.hpp>
Public Member Functions | |
Message () | |
Construct a message. More... | |
Message (Core dest, T t) | |
Construct a message. More... | |
Message (const Message &m)=delete | |
Not allowed. More... | |
Message & | operator= (const Message &m)=delete |
Not allowed. More... | |
Message & | operator= (Message &&m)=delete |
Message (Message &&m)=default | |
virtual | ~Message () |
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 standard message.
Storage is internal. Destructor blocks until message is sent. Best used through message function.
Definition at line 51 of file Message.hpp.
|
inline |
Construct a message.
Definition at line 57 of file Message.hpp.
|
inline |
Construct a message.
dest | ID of destination core. |
t | Contents of message to send. |
Definition at line 65 of file Message.hpp.
|
delete |
Not allowed.
|
default |
|
inlinevirtual |
Definition at line 76 of file Message.hpp.
|
inlinevirtual |
Definition at line 121 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 114 of file Message.hpp.
|
inline |
for Messages with modifiable contents.
Don't use with lambdas.Access message contents.
Definition at line 89 of file Message.hpp.
|
inline |
Access message contents.
Definition at line 94 of file Message.hpp.
|
delete |
Not allowed.
|
delete |
|
inlinevirtual |
Copy this message into a buffer.
Definition at line 133 of file Message.hpp.
|
inlinevirtual |
How much storage do we need to send this message?
Definition at line 99 of file Message.hpp.
|
inlinevirtual |
Definition at line 103 of file Message.hpp.
|
inlinevirtual |
Definition at line 80 of file Message.hpp.