6 #ifndef __FWCOM_SLOTCONNECTION_HPP__ 7 #define __FWCOM_SLOTCONNECTION_HPP__ 9 #include "fwCom/SlotConnectionBase.hpp" 11 #include "fwCom/SlotBase.hpp" 16 template <
typename F >
19 template <
typename F >
26 template <
typename ... A >
32 typedef void SignatureType ( A ... );
35 typedef SPTR ( SelfType ) sptr;
38 typedef SPTR ( SignalType ) SignalSptrType;
39 typedef WPTR ( SignalType ) SignalWptrType;
42 typedef SPTR ( SlotWrapperType ) SlotWrapperSptrType;
45 typedef SPTR ( SlotRunType ) SlotRunSptrType;
47 typedef std::pair< bool, SlotRunType* > PairType;
50 static sptr New(
const SignalSptrType &signal,
const SlotRunSptrType &slot );
54 static sptr New(
const SignalSptrType &signal,
56 const SlotWrapperSptrType &slotWrapper
66 SlotConnection(
const SignalSptrType &signal,
const SlotRunSptrType &slot );
71 const SlotWrapperSptrType &slotWrapper
77 template <
typename F >
85 void disconnectSignalNoLock(
const SignalSptrType &sig);
91 void disconnectWeakLock();
97 SlotConnectionBase::BlockerSptrType getBlocker();
109 SlotWrapperSptrType m_slotWrapper;
120 mutable ::
fwCore::mt::ReadWriteMutex m_mutex;
Namespace containing fw4spl communication tools.
This namespace fwCore provides common foundations for FW4SPL.
SignalWptrType m_signal
Related Signal.
Base class for Slot connection implementation. This class is for internal use purpose.
Base class for Slot implementations.