![]() |
![]() |
Inheritance diagram for SigC::Signal0< T_return, T_accumulator >:
Public Types | |
typedef ::sigc::signal0< T_return, T_accumulator > | parent_type |
typedef parent_type::result_type | result_type |
typedef parent_type::slot_type | slot_type |
Public Member Functions | |
Signal0 () | |
Signal0 (const Signal0& src) | |
slot_type | slot () const |
Creates a functor that calls emit() on this signal. |
Signal0 can be used to connect() slots that are invoked during subsequent calls to emit(). Any functor or slot can be passed into connect(). It is converted into a slot implicitely.
If you want to connect one signal to another, use slot() to retrieve a functor that emits the signal when invoked.
Be careful if you directly pass one signal into the connect() method of another: a shallow copy of the signal is made and the signal's slots are not disconnected until both the signal and its clone are destroyed which is probably not what you want!
An STL-style list interface for the signal's list of slots can be retrieved with slots(). This interface supports iteration, insertion and removal of slots.
The following template arguments are used:
nil
means that no accumulator should be used. Signal emission returns the return value of the last slot invoked.
|
|
|
Reimplemented from sigc::signal0<T_return, T_accumulator>. |
|
Reimplemented from sigc::signal0<T_return, T_accumulator>. |
|
|
|
|
|
Creates a functor that calls emit() on this signal.
sigc::mem_fun(mysignal, &sigc::signal0::emit)
|