SObjectizer-5 Extra
|
Namespaces | |
details | |
errors | |
Classes | |
class | request_reply_t |
A special class for performing interactions between agents in request-reply maner. More... | |
Typedefs | |
template<typename Request , typename Reply > | |
using | request_mhood_t = typename request_reply_t< Request, Reply >::request_mhood_t |
A short form of request_reply_t<Q,A>::request_mhood_t. More... | |
template<typename Request , typename Reply > | |
using | reply_mhood_t = typename request_reply_t< Request, Reply >::reply_mhood_t |
A short form of request_reply_t<Q,A>::reply_mhood_t. More... | |
Enumerations | |
enum | close_reply_chain_flag_t { close_reply_chain_flag_t::close, close_reply_chain_flag_t::do_not_close } |
A flag to specify should the reply chain be closed automatically. More... | |
Functions | |
template<typename Request , typename Reply , typename Target , typename Duration , typename... Args> | |
SO_5_NODISCARD auto | request_reply (Target &&target, Duration duration, Args &&...args) |
A helper function for performing request_reply-iteraction. More... | |
template<typename Request , typename Reply , typename Target , typename Duration , typename... Args> | |
SO_5_NODISCARD auto | request_opt_reply (Target &&target, Duration duration, Args &&...args) |
A helper function for performing request_reply-iteraction. More... | |
Variables | |
constexpr const close_reply_chain_flag_t | close_reply_chain |
The indicator that the reply chain should be closed automatically. More... | |
constexpr const close_reply_chain_flag_t | do_not_close_reply_chain |
The indicator that the reply chain shouldn't be closed automatically. More... | |
using so_5::extra::sync::reply_mhood_t = typedef typename request_reply_t<Request, Reply>::reply_mhood_t |
A short form of request_reply_t<Q,A>::reply_mhood_t.
using so_5::extra::sync::request_mhood_t = typedef typename request_reply_t<Request, Reply>::request_mhood_t |
A short form of request_reply_t<Q,A>::request_mhood_t.
Usage example:
|
strong |
A flag to specify should the reply chain be closed automatically.
Enumerator | |
---|---|
close | The reply chain should be automatically closed when the corresponding request_reply_t instance is being destroyed. |
do_not_close | The reply chain shouldn't be closed even if the corresponding request_reply_t instance is destroyed. A user should close the reply chain manually. |
SO_5_NODISCARD auto so_5::extra::sync::request_opt_reply | ( | Target && | target, |
Duration | duration, | ||
Args &&... | args | ||
) |
A helper function for performing request_reply-iteraction.
Sends a so_5::extra::sync::request_reply_t <Request,Reply> to the specified target and waits the reply for no more that duration. If there is no reply then an empty optional object will be returned.
Usage example:
Returns an instance of std::optional<Reply> object.
SO_5_NODISCARD auto so_5::extra::sync::request_reply | ( | Target && | target, |
Duration | duration, | ||
Args &&... | args | ||
) |
A helper function for performing request_reply-iteraction.
Sends a so_5::extra::sync::request_reply_t <Request,Reply> to the specified target and waits the reply for no more that duration. If there is no reply then an exception will be thrown.
Usage example:
Returns an instance of Reply object.
constexpr const close_reply_chain_flag_t so_5::extra::sync::close_reply_chain |
The indicator that the reply chain should be closed automatically.
If this flag is used then the reply chain will be automatically closed when the corresponding request_reply_t instance is being destroyed.
Usage example:
constexpr const close_reply_chain_flag_t so_5::extra::sync::do_not_close_reply_chain |
The indicator that the reply chain shouldn't be closed automatically.
If this flag is used then the reply chain won't be automatically closed when the corresponding request_reply_t instance is being destroyed. It means that one reply chain can be used for receiving of different replies: