Signal implementation. Template parameter T must always be void.
More...
#include <Signal.hpp>
|
|
typedef R | SignatureType(A...) |
|
typedef Signal< SignatureType > | SelfType |
|
typedef std::shared_ptr< SelfType > | sptr |
|
typedef std::weak_ptr< SelfType > | wptr |
|
typedef SlotRun< SignatureType > | SlotRunType |
|
typedef std::shared_ptr< SlotRunType > | SlotSptr |
|
typedef std::pair< bool, SlotRunType * > | PairType |
|
typedef std::list< PairType * > | SlotContainerType |
|
typedef std::map< std::weak_ptr< SlotBase >, std::weak_ptr< SlotConnectionBase >, std::owner_less< std::weak_ptr< SlotBase > > > | ConnectionMapType |
|
typedef std::shared_ptr< SignalBase > | sptr |
|
typedef std::weak_ptr< SignalBase > | wptr |
|
|
static sptr | New () |
| Constructs a new Signal of type Signal<R(A...)>.
|
|
static bool | isTypeOf (const std::string &type) |
|
static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
template<typename FROM_F > |
Connection | connect (std::shared_ptr< SlotBase > slot) |
| Connects the given slot. Tries to connect a slot of type R (A1, A2, ..., Am, An) : returns a connection on success, otherwise try to connect the same slot with the type R (A1, A2, ..., Am). More...
|
|
| SignalBase (const SignalBase &) |
| Copy constructor forbidden.
|
|
SignalBase & | operator= (const SignalBase &) |
| Copy operator forbiden.
|
|
|
SlotContainerType | m_slots |
| Connected slots.
|
|
ConnectionMapType | m_connections |
| Container of current connections.
|
|
mutable::fwCore::mt::ReadWriteMutex | m_connectionsMutex |
|
|
template<typename F > |
struct | SlotConnection |
|
template<typename R, typename... A>
struct fwCom::Signal< R(A...) >
Signal implementation. Template parameter T must always be void.
Definition at line 37 of file Signal.hpp.
template<typename R , typename... A>
Connects the given slot.
- Returns
- an object managing the connection.
- Exceptions
-
BadSlot | If given slot doesn't match signal type. |
AlreadyConnected | If given slot is already connected. |
Implements fwCom::SignalBase.
template<typename R , typename... A>
template<typename FROM_F >
Connects the given slot. Tries to connect a slot of type R (A1, A2, ..., Am, An) : returns a connection on success, otherwise try to connect the same slot with the type R (A1, A2, ..., Am).
- Exceptions
-
BadSlot | If given slot doesn't match signal type. |
AlreadyConnected | If given slot is already connected. |
Implements fwCom::SignalBase.
Definition at line 36 of file Signal.hxx.
template<typename R , typename... A>
template<typename R , typename... A>
Returns the connection handler matching given slot.
- Exceptions
-
BadSlot | if given slot is not connected and throws is true. |
Definition at line 194 of file Signal.hxx.
The documentation for this struct was generated from the following files: