fw4spl
fwCom::SignalBase Struct Referenceabstract

Signal base class. More...

#include <SignalBase.hpp>

+ Inheritance diagram for fwCom::SignalBase:
+ Collaboration diagram for fwCom::SignalBase:

Public Types

Typedefs
typedef std::shared_ptr< SignalBasesptr
 
typedef std::weak_ptr< SignalBasewptr
 

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.
 
SignalBaseoperator= (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
 

Detailed Description

Signal base class.

Definition at line 23 of file SignalBase.hpp.

Member Function Documentation

virtual Connection fwCom::SignalBase::connect ( std::shared_ptr< SlotBase slot)
pure virtual

Connects the given slot.

Exceptions
BadSlotIf given slot doesn't match signal type.

Implemented in fwCom::Signal< R(A...) >, and fwCom::Signal< R(A...) >.

virtual void fwCom::SignalBase::disconnect ( std::shared_ptr< SlotBase slot)
pure virtual

Disconnects the given slot.

Exceptions
BadSlotIf given slot is not found in current connections.

Implemented in fwCom::Signal< R(A...) >.


The documentation for this struct was generated from the following file: