Antkeeper  0.0.1
Classes | Typedefs
event Namespace Reference

Publish-subscribe messaging. More...

Classes

class  publisher
 Publishes messages to subscribers. More...
 
class  channel
 Channel through which messages are published. More...
 
class  dispatcher
 Forwards messages from publishers to subscribers. More...
 
class  queue
 Collects messages from publishers to be dispatched to subscribers when desired. More...
 
class  subscription
 Unsubscribes a subscriber on destruction. More...
 

Typedefs

template<class T >
using subscriber = std::function< void(const T &)>
 Subscriber function object type. More...
 
typedef std::shared_ptr< subscriptionshared_subscription
 Shared pointer to a subscription. More...
 

Detailed Description

Publish-subscribe messaging.

Typedef Documentation

◆ shared_subscription

typedef std::shared_ptr<subscription> event::shared_subscription

Shared pointer to a subscription.

Definition at line 68 of file subscription.hpp.

◆ subscriber

template<class T >
using event::subscriber = typedef std::function<void(const T&)>

Subscriber function object type.

Template Parameters
TMessage type.

Definition at line 33 of file subscriber.hpp.