21#ifndef HEDGEHOG_DEFAULT_SLOT_H 
   22#define HEDGEHOG_DEFAULT_SLOT_H 
   27#include "../implementor/implementor_slot.h" 
   28#include "../implementor/implementor_notifier.h" 
   34namespace implementor {
 
   39  std::unique_ptr<std::set<abstraction::NotifierAbstraction *>> 
const 
   45      : 
notifiers_(std::make_unique<std::set<abstraction::NotifierAbstraction * >>()) {}
 
Core abstraction to notify slots.
Default concrete implementation of slot interface.
bool hasNotifierConnected() const override
Test if there is any notifiers connected.
void removeNotifier(abstraction::NotifierAbstraction *const notifier) override
Remove a notifier to the list of connected notifiers.
DefaultSlot()
Default constructor.
std::unique_ptr< std::set< abstraction::NotifierAbstraction * > > const notifiers_
List of notifiers linked to this slot.
std::set< abstraction::NotifierAbstraction * > const & connectedNotifiers() const override
Accessor to the connected notifiers.
void addNotifier(abstraction::NotifierAbstraction *const notifier) override
Add a notifier to the list of connected notifiers.
~DefaultSlot() override=default
Default destructor.
Implementor for the SlotAbstraction.