![]() |
![]() |
Inheritance diagram for sigc::signal_base:
Public Types | |
typedef size_t | size_type |
Public Member Functions | |
signal_base () | |
signal_base (const signal_base& src) | |
~signal_base () | |
signal_base& | operator= (const signal_base& src) |
bool | empty () const |
Returns whether the list of slots is empty. | |
void | clear () |
Empties the list of slots. | |
size_type | size () const |
Returns the number of slots in the list. | |
Protected Types | |
typedef internal::signal_impl::iterator_type | iterator_type |
Protected Member Functions | |
iterator_type | connect (const slot_base& slot_) |
Adds a slot at the end of the list of slots. | |
iterator_type | insert (iterator_type i, const slot_base& slot_) |
Adds a slot at the given position into the list of slots. | |
iterator_type | erase (iterator_type i) |
Removes the slot at the given position from the list of slots. | |
internal::signal_impl* | impl () const |
Returns the signal_impl object encapsulating the list of slots. | |
Protected Attributes | |
internal::signal_impl* | impl_ |
The signal_impl object encapsulating the slot list. |
signal_base integrates most of the interface of the derived sigc::signal# templates. The implementation, however, resides in sigc::internal::signal_impl. A sigc::internal::signal_impl object is dynamically allocated from signal_base when first connecting a slot to the signal. This ensures that empty signals don't waste memory.
|
|
|
|
|
|
|
|
|
|
|
Empties the list of slots.
|
|
Adds a slot at the end of the list of slots. With connect(), slots can also be added during signal emission. In this case, they won't be executed until the next emission occurs.
|
|
Returns whether the list of slots is empty.
|
|
Removes the slot at the given position from the list of slots. Note that this function does not work during signal emission!
|
|
Returns the signal_impl object encapsulating the list of slots.
|
|
Adds a slot at the given position into the list of slots. Note that this function does not work during signal emission!
|
|
|
|
Returns the number of slots in the list.
|
|
The signal_impl object encapsulating the slot list.
|