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 40 of file Message.hpp.
|
inline |
Construct a message.
Definition at line 46 of file Message.hpp.
|
inline |
Construct a message.
dest | ID of destination core. |
t | Contents of message to send. |
Definition at line 54 of file Message.hpp.
|
delete |
Not allowed.
|
default |
|
inlinevirtual |
Definition at line 65 of file Message.hpp.
|
inlinevirtual |
Definition at line 110 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 103 of file Message.hpp.
|
inline |
for Messages with modifiable contents.
Don't use with lambdas.Access message contents.
Definition at line 78 of file Message.hpp.
|
inline |
Access message contents.
Definition at line 83 of file Message.hpp.
|
delete |
Not allowed.
|
delete |
|
inlinevirtual |
Copy this message into a buffer.
Definition at line 122 of file Message.hpp.
|
inlinevirtual |
How much storage do we need to send this message?
Definition at line 88 of file Message.hpp.
|
inlinevirtual |
Definition at line 92 of file Message.hpp.
|
inlinevirtual |
Definition at line 69 of file Message.hpp.