C++ Actor Framework 0.19
|
Bundles various flags along with an optional request ID. More...
#include <message_id.hpp>
Public Member Functions | |
constexpr | message_id () |
Constructs a message ID for asynchronous messages with normal priority. | |
constexpr | message_id (uint64_t value) |
message_id (const message_id &)=default | |
message_id & | operator= (const message_id &)=default |
constexpr uint64_t | category () const noexcept |
Returns the message category, i.e., normal_message_category or urgent_message_category . | |
constexpr message_id | with_category (uint64_t x) const noexcept |
Returns a new message ID with given category. | |
constexpr bool | is_async () const noexcept |
Returns whether a message is asynchronous, i.e., not a request. | |
constexpr bool | is_request () const noexcept |
Returns whether a message is a request. | |
constexpr bool | is_response () const noexcept |
Returns whether a message is a response to a previously send request. | |
constexpr bool | is_answered () const noexcept |
Returns whether a message is tagged as answered by the receiving actor. | |
constexpr bool | is_urgent_message () const noexcept |
Returns whether category() == urgent_message_category . | |
constexpr bool | is_normal_message () const noexcept |
Returns whether category() == normal_message_category . | |
constexpr message_id | response_id () const noexcept |
Returns a response ID for the current request or an asynchronous ID with the same priority as this ID. | |
constexpr message_id | request_id () const noexcept |
Extracts the request number part of this ID. | |
constexpr message_id | with_high_priority () const noexcept |
Returns the same ID but high message priority. | |
constexpr message_id | with_normal_priority () const noexcept |
Returns the same ID with normal message priority. | |
constexpr uint64_t | integer_value () const noexcept |
Returns the "raw bytes" for this ID. | |
constexpr int64_t | compare (const message_id &other) const noexcept |
Returns a negative value if *this < other , zero if *this == other , and a positive value otherwise. | |
void | mark_as_answered () noexcept |
Sets the flag for marking an incoming message as answered. | |
message_id & | operator++ () noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
constexpr message_id | make_message_id (normal_message_priority_constant, uint64_t value) |
Generates a message_id with given integer value. | |
constexpr message_id | make_message_id (high_message_priority_constant, uint64_t value) |
Generates a message_id with given integer value. | |
template<message_priority P = message_priority::normal> | |
constexpr message_id | make_message_id (uint64_t value=0) |
Generates a message_id with given integer value. | |
constexpr message_id | make_message_id (message_priority p) |
Generates a message_id with given priority. | |
Bundles various flags along with an optional request ID.