TARAXA
taraxa::util::event::Event< Owner, Payload > Class Template Reference

#include <event.hpp>

Collaboration diagram for taraxa::util::event::Event< Owner, Payload >:

Private Attributes

friend Owner
 
- Private Attributes inherited from taraxa::util::event::EventSubscriber< Payload >
class taraxa::util::event::EventSubscriber::State state_
 

Additional Inherited Members

- Public Types inherited from taraxa::util::event::EventSubscriber< Payload >
using Handler = std::function< void(Payload const &)>
 
- Public Member Functions inherited from taraxa::util::event::EventSubscriber< Payload >
auto subscribe (Handler &&handler, task_executor_t &&execution_context=current_thread_executor()) const
 
auto unsubscribe (uint64_t subscription_id) const
 
- Protected Member Functions inherited from taraxa::util::event::EventSubscriber< Payload >
 EventSubscriber ()=default
 
- Protected Attributes inherited from taraxa::util::event::EventSubscriber< Payload >
class taraxa::util::event::EventSubscriber::State state_
 
- Private Types inherited from taraxa::util::event::EventEmitter< Payload >
using Subscriber = EventSubscriber< Payload >
 
- Private Types inherited from taraxa::util::event::EventSubscriber< Payload >
using Handler = std::function< void(Payload const &)>
 
- Private Member Functions inherited from taraxa::util::event::EventEmitter< Payload >
void emit (Payload const &payload) const
 
- Private Member Functions inherited from taraxa::util::event::EventSubscriber< Payload >
auto subscribe (Handler &&handler, task_executor_t &&execution_context=current_thread_executor()) const
 
auto unsubscribe (uint64_t subscription_id) const
 
 EventSubscriber ()=default
 

Member Data Documentation

◆ Owner

template<class Owner , typename Payload >
friend taraxa::util::event::Event< Owner, Payload >::Owner
private

The documentation for this class was generated from the following file: