![]() |
helics
3.4.0
|
Public Member Functions | |
Message () HELICS_NOTHROW | |
Message (const Federate &fed) | |
Message (const Endpoint &ept) | |
Message (HelicsMessage hmo) HELICS_NOTHROW | |
Message (const Message &mess) HELICS_NOTHROW | |
Message & | operator= (const Message &mess) HELICS_NOTHROW |
~Message () | |
operator HelicsMessage () const | |
bool | isValid () const |
const char * | source () const |
Message & | source (const std::string &src) |
Message & | source (const char *src) |
const char * | destination () const |
Message & | destination (const std::string &dest) |
Message & | destination (const char *dest) |
const char * | originalSource () const |
Message & | originalSource (const std::string &osrc) |
const char * | originalDestination () const |
Message & | originalDestination (const std::string &odest) |
int | size () const |
void | resize (int newSize) |
void | reserve (int newSize) |
void * | data () const |
Message & | data (const void *ptr, int size) |
Message & | data (const std::string &str) |
Message & | data (const char *str) |
Message & | append (const void *ptr, int size) |
Message & | append (const std::string &str) |
const char * | c_str () const |
HelicsTime | time () const |
Message & | time (HelicsTime val) |
Message & | setFlag (int flag, bool val) |
bool | getFlagOption (int flag) const |
int | messageID () const |
Message & | messageID (int newId) |
HelicsMessage | release () |
void | clear () |
Message & | newMessageObject (const Federate &fed) |
Message & | newMessageObject (const Endpoint &ept) |
|
inline |
default constructor
|
inlineexplicit |
create a message associated with a federate
|
inlineexplicit |
create a message associated with an endpoint
|
inlineexplicit |
construct from a HelicsMessage object
|
inline |
copy constructor
|
inline |
destructor
References helicsMessageFree().
|
inline |
append a string to a message data field
References helicsMessageAppendData().
|
inline |
append data to the message data field
References helicsMessageAppendData(), and size().
|
inline |
get a the data as a null terminated C string
References helicsMessageGetString().
|
inline |
get a pointer to the data field
References helicsMessageGetBytesPointer().
|
inline |
set the data from a c string pointer assume null terminated
References helicsMessageSetString().
|
inline |
set the data from a string
References helicsMessageSetString().
|
inline |
set the message data from a pointer and size
References helicsMessageSetData(), and size().
|
inline |
get the message destination
References helicsMessageGetDestination().
|
inline |
set the message destination
References helicsMessageSetDestination().
|
inline |
set the message destination
References helicsMessageSetDestination().
|
inline |
check an indexed flag in the message valid numbers are [0,15]
References HELICS_TRUE, and helicsMessageGetFlagOption().
|
inline |
check if a message_object is valid
References HELICS_TRUE, and helicsMessageIsValid().
|
inline |
get the messageID
References helicsMessageGetMessageID().
|
inline |
set the messageID field of a message object
References helicsMessageSetMessageID().
generate a new message in a federate
References helicscpp::Endpoint::baseObject(), helicsEndpointCreateMessage(), and helicsMessageFree().
generate a new message in a federate
References helicscpp::Federate::getObject(), helicsFederateCreateMessage(), and helicsMessageFree().
|
inline |
cast to a HelicsMessage object
copy assignment
References helicsMessageClone(), and helicsMessageFree().
|
inline |
get the original message destination if a filter altered it
References helicsMessageGetOriginalDestination().
|
inline |
set the original destination field
References helicsMessageSetOriginalDestination().
|
inline |
get the original message source which may be different than source if the message was filtered
References helicsMessageGetOriginalSource().
|
inline |
set the original source field
References helicsMessageSetOriginalSource().
|
inline |
release a C message_object from the structure
for use with the C shared library
Referenced by helicscpp::Endpoint::sendMessageZeroCopy().
|
inline |
reserve a certain amount of size in the message data field which is useful for the append operation
References helicsMessageReserve().
|
inline |
set the size of the message data field
References helicsMessageResize().
|
inline |
set an indexed flag in the message
References HELICS_FALSE, HELICS_TRUE, and helicsMessageSetFlagOption().
|
inline |
get the size of the message data field
References helicsMessageGetByteCount().
|
inline |
get the message source endpoint name
References helicsMessageGetSource().
|
inline |
set the message source
References helicsMessageSetSource().
|
inline |
set the message source
References helicsMessageSetSource().
|
inline |
get the time of the message
References helicsMessageGetTime().
|
inline |
set the time the message should be scheduled for
References helicsMessageSetTime().