Antkeeper
0.0.1
|
Channel through which messages are published. More...
#include <channel.hpp>
Public Types | |
typedef T | message_type |
Message type. More... | |
typedef subscriber< message_type > | subscriber_type |
Subscriber function object type. More... | |
Public Member Functions | |
std::shared_ptr< subscription > | subscribe (subscriber_type &&subscriber) |
Subscribes a function object to messages published through this channel. More... | |
std::shared_ptr< subscription > | subscribe (event::dispatcher &dispatcher) |
Subscribes a message dispatcher to messages published through this channel. More... | |
std::shared_ptr< subscription > | subscribe (event::queue &queue) |
Subscribes a message queue to messages published through this channel. More... | |
Friends | |
class | publisher< T > |
Channel through which messages are published.
T | Message type. |
Definition at line 43 of file channel.hpp.
typedef T event::channel< T >::message_type |
Message type.
Definition at line 47 of file channel.hpp.
typedef subscriber<message_type> event::channel< T >::subscriber_type |
Subscriber function object type.
Definition at line 50 of file channel.hpp.
|
inline |
Subscribes a message dispatcher to messages published through this channel.
dispatcher | Message dispatcher which will received published messages. |
Definition at line 85 of file channel.hpp.
|
inline |
Subscribes a message queue to messages published through this channel.
queue | Message queue which will received published messages. |
Definition at line 103 of file channel.hpp.
|
inline |
Subscribes a function object to messages published through this channel.
subscriber | Subscriber function object which will received published messages. |
Definition at line 59 of file channel.hpp.
|
friend |
Definition at line 103 of file channel.hpp.