SObjectizer
5.5
|
Basic part of handlers_bunch implementation. More...
#include <handler_makers.hpp>
Static Public Member Functions | |
static void | prepare_handlers (msg_type_and_handler_pair_t *left, msg_type_and_handler_pair_t *right) |
Preparation of message handlers vector. More... | |
static SO_5_FUNC bool | find_and_use_handler (const msg_type_and_handler_pair_t *left, const msg_type_and_handler_pair_t *right, const std::type_index &msg_type, message_ref_t &message, invocation_type_t invocation) |
Find and exec message handler. More... | |
Basic part of handlers_bunch implementation.
|
static |
Find and exec message handler.
Message handlers vector to be used in handling of message is defined by range [left, right).
true | if handler has been found |
false | if handler has not been found. |
|
inlinestatic |
Preparation of message handlers vector.
Message handlers vector must be ordered by msg_type. And must not contain two or more handlers for the same msg_type.
Vector to be processed is defined by range [left, right).
so_5::exception_t | if there are several handlers for the same message type. |