SObjectizer-5 Extra
|
Type of message to be sent when all collecting messages are received. More...
#include <collecting_mbox.hpp>
Public Member Functions | |
template<typename F > | |
decltype(auto) | with_nth (std::size_t index, F &&f) const |
Do some action with Nth collected message. More... | |
template<typename F > | |
void | for_each (F &&f) const |
Do some action for all collected message. More... | |
template<typename F > | |
void | for_each_with_index (F &&f) const |
Do some action for all collected message. More... | |
Private Types | |
using | mixin_base_type = typename traits_t< Config_Type >::messages_collected_mixin_type |
Private Member Functions | |
void | store_collected_messages (size_t index, message_ref_t msg) |
Store another collected message at the specified index. More... | |
collected_messages_bunch_t (std::size_t size) | |
Initializing constructor. More... | |
Private Attributes | |
traits_t< Config_Type >::container_type | m_collected_messages |
A container for collected messages. More... | |
Friends | |
template<typename > | |
class | collected_messages_bunch_builder_t |
Type of message to be sent when all collecting messages are received.
Config_Type | a type with enumeration of all necessary type traits. It is expected to be config_type with appropriate type parameters. |
Definition at line 159 of file collecting_mbox.hpp.
|
private |
Definition at line 166 of file collecting_mbox.hpp.
|
inlineprivate |
Initializing constructor.
Definition at line 183 of file collecting_mbox.hpp.
|
inline |
Do some action for all collected message.
F | type of functor/lambda which accepts mhood_t. |
Usage example:
Definition at line 250 of file collecting_mbox.hpp.
|
inline |
Do some action for all collected message.
F | type of functor/lambda which accepts two parameters: index of std::size_t and cmd of mhood_t. |
Usage example:
Definition at line 281 of file collecting_mbox.hpp.
|
inlineprivate |
Store another collected message at the specified index.
index | Index at which message should be stored. |
msg | Message to be stored. |
Definition at line 173 of file collecting_mbox.hpp.
|
inline |
Do some action with Nth collected message.
F | type of functor/lambda which accepts mhood_t. |
Usage example:
Definition at line 218 of file collecting_mbox.hpp.
|
friend |
Definition at line 163 of file collecting_mbox.hpp.
|
private |
A container for collected messages.
Definition at line 169 of file collecting_mbox.hpp.