|
SObjectizer
5.5
|
Various stuff for creation of event handlers. More...
#include <so_5/exception.hpp>#include <so_5/ret_code.hpp>#include <so_5/details/lambda_traits.hpp>#include <so_5/details/always_false.hpp>#include <so_5/execution_demand.hpp>#include <so_5/message_handler_format_detector.hpp>#include <so_5/mbox.hpp>#include <algorithm>Go to the source code of this file.
Namespaces | |
| so_5 | |
| Public part of message limit implementation. | |
| so_5::details | |
| Some reusable and low-level classes/functions which can be used in public header files. | |
| so_5::details::event_subscription_helpers | |
| Various helpers for event subscription. | |
Functions | |
| template<class Agent > | |
| Agent * | so_5::details::event_subscription_helpers::get_actual_agent_pointer (agent_t &agent) |
| Get actual agent pointer. More... | |
| template<typename R , typename L > | |
| void | so_5::details::event_subscription_helpers::set_promise (std::promise< R > &to, L result_provider) |
| A helper for setting a result to a promise. More... | |
| template<typename L > | |
| void | so_5::details::event_subscription_helpers::set_promise (std::promise< void > &to, L result_provider) |
| A helper for setting a result to a promise<void>. More... | |
| template<typename Handler_Type , typename Result , typename Arg > | |
| msg_type_and_handler_pair_t | so_5::details::event_subscription_helpers::make_handler_with_arg (Handler_Type lambda) |
| Helper template for creation of event handler with actual argument. More... | |
| template<class Lambda > | |
| details::msg_type_and_handler_pair_t | so_5::details::event_subscription_helpers::make_handler_from_lambda_of_free_function (Lambda &&lambda) |
| A function for creation event handler. More... | |
| template<typename Agent , typename Method_Pointer > | |
| std::enable_if< is_agent_method_pointer< method_arity::unary, Method_Pointer >::value, msg_type_and_handler_pair_t >::type | so_5::details::event_subscription_helpers::make_handler_with_arg_for_agent (Agent *agent, Method_Pointer pfn) |
| Helper template for creation of event handler with actual argument. More... | |
| void | so_5::details::event_subscription_helpers::ensure_handler_can_be_used_with_mbox (const ::so_5::details::msg_type_and_handler_pair_t &handler, const ::so_5::mbox_t &target_mbox) |
| Ensure that mutability of message is compatible with mutability of target mbox. More... | |
| template<typename Method_Pointer > | |
| std::enable_if< details::is_agent_method_pointer< details::method_arity::unary, Method_Pointer >::value, details::msg_type_and_handler_pair_t >::type | so_5::preprocess_agent_event_handler (const mbox_t &mbox, agent_t &agent, Method_Pointer pfn) |
| Do preprocessing and some verification of event handler and return msg_type_and_handler_pair for it. More... | |
| template<typename Lambda > | |
| std::enable_if< details::lambda_traits::is_lambda< Lambda >::value, details::msg_type_and_handler_pair_t >::type | so_5::preprocess_agent_event_handler (const mbox_t &mbox, agent_t &, Lambda &&lambda) |
| Do preprocessing and some verification of event handler and return msg_type_and_handler_pair for it. More... | |
| template<typename Bunch > | |
| void | so_5::details::fill_handlers_bunch (Bunch &bunch, std::size_t) |
| template<typename Bunch , typename... Others> | |
| void | so_5::details::fill_handlers_bunch (Bunch &bunch, std::size_t index, msg_type_and_handler_pair_t &&handler, Others &&... other_handlers) |
| template<typename Bunch , typename Lambda , typename... Others> | |
| void | so_5::details::fill_handlers_bunch (Bunch &bunch, std::size_t index, Lambda &&lambda, Others &&... other_handlers) |
Various stuff for creation of event handlers.
1.8.14