|
Public Member Functions |
| slot_rep (hook call__, hook destroy__, hook dup__) |
| ~slot_rep () |
void | destroy () |
| Destroys the slot_rep object (but doesn't delete it).
|
slot_rep* | dup () const |
| Makes a deep copy of the slot_rep object.
|
void | set_parent (void* parent, hook cleanup) |
| Set the parent with a callback.
|
void | disconnect () |
| Invalidates the slot and executes the parent's cleanup callback.
|
Static Public Member Functions |
static void* | notify (void* data) |
| Callback that invalidates the slot.
|
Public Attributes |
hook | call_ |
| Callback that invokes the contained functor.
|
hook | destroy_ |
| Callback that detaches the slot_rep object from referred trackables and destroys it.
|
hook | dup_ |
| Callback that makes a deep copy of the slot_rep object.
|
hook | cleanup_ |
| Callback of parent_.
|
void* | parent_ |
| Parent object whose callback cleanup_ is executed on notification.
|
Derivations of this class can be considered as a link between a slot and the functor that the slot should execute in operator(). This link is needed because in libsigc++2 the slot doesn't necessarily have exactly the same function signature as the functor thus allowing for implicit conversions. The base class slot_rep serves the purpose to