|
SObjectizer
5.8
|
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 | |
| namespace | so_5 |
| Private part of message limit implementation. | |
| namespace | so_5::details |
| Some reusable and low-level classes/functions which can be used in public header files. | |
| namespace | 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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) |