![]() |
Inheritance diagram for sigc::slot_base:

Public Types | |
| typedef trackable::func_destroy_notify | func_destroy_notify |
Public Member Functions | |
| slot_base () | |
| Constructs an empty slot. | |
| slot_base (rep_type* rep) | |
| Constructs a slot from an existing slot_rep object. | |
| slot_base (const slot_base& src) | |
| Constructs a slot, copying an existing one. | |
| ~slot_base () | |
| operator bool () const | |
| Tests whether a slot is null, because the default constructor was used. | |
| void | set_parent (void* parent, void*(* cleanup)(void*)) const |
| Sets the parent of this slot. | |
| void | add_destroy_notify_callback (void* data, func_destroy_notify func) const |
| Add a callback that is executed (notified) when the slot is detroyed. | |
| void | remove_destroy_notify_callback (void* data) const |
| Remove a callback previously installed with add_destroy_notify_callback(). | |
| bool | empty () const |
| Returns whether the slot is invalid. | |
| bool | blocked () const |
| Returns whether the slot is blocked. | |
| bool | block (bool should_block=true) |
| Sets the blocking state. | |
| bool | unblock () |
| Unsets the blocking state. | |
| void | disconnect () |
| Disconnects the slot. | |
Public Attributes | |
| rep_type* | rep_ |
| Typed slot_rep object that contains a functor. | |
| bool | blocked_ |
| Indicates whether the slot is blocked. | |
Protected Member Functions | |
| slot_base& | operator= (const slot_base& src) |
| Overrides this slot making a copy from another slot. | |
slot_base integrates most of the interface of the derived sigc::slot templates. slots can be connected to signals, be disconnected at some later point (disconnect()) and temporarily be blocked (block(), unblock()). The validity of a slot can be tested with empty().
The internal representation of a sigc::internal::slot_rep derived type is built from slot_base's derivations. set_parent() is used to register a notification callback that is executed when the slot gets invalid. add_destroy_notify_callback() is used by connection objects to add a notification callback that is executed on destruction.
|
|
|
|
|
Constructs an empty slot.
|
|
|
Constructs a slot from an existing slot_rep object.
|
|
|
Constructs a slot, copying an existing one.
|
|
|
|
|
||||||||||||
|
Add a callback that is executed (notified) when the slot is detroyed. This function is used internally by connection objects.
|
|
|
Sets the blocking state.
If should_block is
|
|
|
Returns whether the slot is blocked.
|
|
|
Disconnects the slot. Invalidates the slot and notifies the parent. |
|
|
Returns whether the slot is invalid.
|
|
|
Tests whether a slot is null, because the default constructor was used. Test a slot for null like so: if(slot) do_something() |
|
|
Overrides this slot making a copy from another slot.
|
|
|
Remove a callback previously installed with add_destroy_notify_callback(). The callback is not executed.
|
|
||||||||||||
|
Sets the parent of this slot. This function is used by signals to register a notification callback. This notification callback is executed when the slot becomes invalid because of some referred object dying.
|
|
|
Unsets the blocking state.
|
|
|
Indicates whether the slot is blocked.
|
|
|
Typed slot_rep object that contains a functor.
|