helics
3.5.2
|
#include <core-data.hpp>
Public Member Functions | |
Message ()=default | |
void | swap (Message &m2) noexcept |
bool | isValid () const noexcept |
std::string_view | to_string () const |
void | clear () |
Public Attributes | |
Time | time = timeZero |
the event time the message is sent | |
std::uint16_t | flags {0} |
message flags | |
std::uint16_t | messageValidation {0U} |
extra field for user object usage, not used by HELICS | |
std::int32_t | messageID {0} |
the messageID for a message | |
SmallBuffer | data |
the data packet for the message | |
std::string | dest |
the destination of the message | |
std::string | source |
the most recent source of the message | |
std::string | original_source |
the original source of the message | |
std::string | original_dest |
the original destination of a message | |
std::int32_t | counter {0} |
indexing counter not used directly by helics | |
void * | backReference {nullptr} |
back referencing pointer not used by helics | |
class containing a message structure
|
default |
default constructor
|
inline |
clear all data from the message
References counter, data, dest, flags, messageID, original_dest, original_source, source, time, and helics::timeZero.
|
inlinenoexcept |
|
inlinenoexcept |
swap operation for the Message
References data, dest, flags, messageID, original_dest, original_source, source, helics::SmallBuffer::swap(), and time.
|
inline |
get the payload as a string
References data, and helics::SmallBuffer::to_string().