fw4spl
|
#include <SignalBase.hpp>
Public Types | |
Typedefs | |
typedef std::shared_ptr< SignalBase > | sptr |
typedef std::weak_ptr< SignalBase > | wptr |
Public Member Functions | |
virtual Connection | connect (std::shared_ptr< SlotBase > slot)=0 |
Connects the given slot. More... | |
virtual void | disconnect (std::shared_ptr< SlotBase > slot)=0 |
Disconnects the given slot. More... | |
virtual size_t | getNumberOfConnections () const =0 |
Returns number of connections. | |
Public Member Functions inherited from fwCore::BaseObject | |
virtual bool | isA (const std::string &type) const |
virtual const std::string & | getLeafClassname () const |
return object's classname without its namespace, i.e. BaseObject | |
virtual const std::string & | getClassname () const |
return full object's classname with its namespace, i.e. fwCore::BaseObject | |
Protected Member Functions | |
SignalBase (const SignalBase &) | |
Copy constructor forbidden. | |
SignalBase & | operator= (const SignalBase &) |
Copy operator forbiden. | |
Additional Inherited Members | |
Static Public Member Functions inherited from fwCore::BaseObject | |
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 | |
Signal base class.
Definition at line 23 of file SignalBase.hpp.
|
pure virtual |
Connects the given slot.
BadSlot | If given slot doesn't match signal type. |
Implemented in fwCom::Signal< R(A...) >, and fwCom::Signal< R(A...) >.
|
pure virtual |
Disconnects the given slot.
BadSlot | If given slot is not found in current connections. |
Implemented in fwCom::Signal< R(A...) >.