Core's abstraction to receive a signal.
More...
#include "slot_abstraction.h"
|
std::shared_ptr< std::mutex > const & | mutex () const |
| Protected accessor to mutex.
|
|
std::shared_ptr< std::condition_variable > const & | slotConditionVariable () const |
| Protected accessor to condition variable.
|
|
void | copyInnerStructure (SlotAbstraction *copyableCore) |
| Copy the inner structure of copyableCore into this.
|
|
Core's abstraction to receive a signal.
Definition at line 55 of file slot_abstraction.h.
◆ SlotAbstraction()
Constructor using a concrete slot implementation.
- Parameters
-
concreteSlot | Concrete slot implementation |
Definition at line 69 of file slot_abstraction.h.
◆ ~SlotAbstraction()
virtual hh::core::abstraction::SlotAbstraction::~SlotAbstraction |
( |
| ) |
|
|
virtualdefault |
◆ addNotifier()
void hh::core::abstraction::SlotAbstraction::addNotifier |
( |
NotifierAbstraction *const |
notifier | ) |
|
|
inline |
◆ connectedNotifiers()
std::set< NotifierAbstraction * > const & hh::core::abstraction::SlotAbstraction::connectedNotifiers |
( |
| ) |
const |
|
inline |
◆ copyInnerStructure()
void hh::core::abstraction::SlotAbstraction::copyInnerStructure |
( |
SlotAbstraction * |
copyableCore | ) |
|
|
inlineprotected |
Copy the inner structure of copyableCore into this.
- Parameters
-
Definition at line 144 of file slot_abstraction.h.
◆ hasNotifierConnected()
bool hh::core::abstraction::SlotAbstraction::hasNotifierConnected |
( |
| ) |
const |
|
inline |
Test if there is at least one notifier connected.
- Returns
- True if there is at least one notifier connected, else false
Definition at line 121 of file slot_abstraction.h.
◆ lockSlotMutex()
void hh::core::abstraction::SlotAbstraction::lockSlotMutex |
( |
| ) |
|
|
inline |
◆ mutex()
std::shared_ptr< std::mutex > const & hh::core::abstraction::SlotAbstraction::mutex |
( |
| ) |
const |
|
inlineprotected |
◆ removeNotifier()
void hh::core::abstraction::SlotAbstraction::removeNotifier |
( |
NotifierAbstraction *const |
notifier | ) |
|
|
inline |
◆ slotConditionVariable()
std::shared_ptr< std::condition_variable > const & hh::core::abstraction::SlotAbstraction::slotConditionVariable |
( |
| ) |
const |
|
inlineprotected |
Protected accessor to condition variable.
- Returns
- Condition variable
Definition at line 138 of file slot_abstraction.h.
◆ slots() [1/2]
std::set< SlotAbstraction * > & hh::core::abstraction::SlotAbstraction::slots |
( |
| ) |
|
|
inline |
Accessor to slots.
Present the slots linked to this abstraction, usually one, may be multiple for the graph presenting all of the input node slots
- Returns
- Reference to slots
Definition at line 89 of file slot_abstraction.h.
◆ slots() [2/2]
std::set< SlotAbstraction * > const & hh::core::abstraction::SlotAbstraction::slots |
( |
| ) |
const |
|
inline |
Const accessor to slots.
Present the slots linked to this abstraction, usually one, may be multiple for the graph presenting all of the input node slots
- Returns
- Const reference to slots
Definition at line 83 of file slot_abstraction.h.
◆ unlockSlotMutex()
void hh::core::abstraction::SlotAbstraction::unlockSlotMutex |
( |
| ) |
|
|
inline |
◆ wakeUp()
virtual void hh::core::abstraction::SlotAbstraction::wakeUp |
( |
| ) |
|
|
pure virtual |
◆ concreteSlot_
◆ mutex_
std::shared_ptr<std::mutex> hh::core::abstraction::SlotAbstraction::mutex_ = nullptr |
|
private |
◆ slotConditionVariable_
std::shared_ptr<std::condition_variable> hh::core::abstraction::SlotAbstraction::slotConditionVariable_ = nullptr |
|
private |