![]() |
Inheritance diagram for sigc::internal::slot_rep:

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
| sigc::internal::slot_rep::~slot_rep | ( | ) | [inline] |
| void sigc::internal::slot_rep::destroy | ( | ) | [inline] |
Destroys the slot_rep object (but doesn't delete it).
| slot_rep* sigc::internal::slot_rep::dup | ( | ) | const [inline] |
| void sigc::internal::slot_rep::set_parent | ( | void * | parent, | |
| hook | cleanup | |||
| ) | [inline] |
Set the parent with a callback.
slots have one parent exclusively.
| parent | The new parent. | |
| cleanup | The callback to execute from notify(). |
| void sigc::internal::slot_rep::disconnect | ( | ) |
Invalidates the slot and executes the parent's cleanup callback.
| static void* sigc::internal::slot_rep::notify | ( | void * | data | ) | [static] |
Callback that invalidates the slot.
This callback is registered in every object of a trackable inherited type that is referred by this slot_rep object. It is executed when the slot becomes invalid because of some referred object dying.
| data | The slot_rep object that is becoming invalid (this). |
Callback that invokes the contained functor.
Callback that detaches the slot_rep object from referred trackables and destroys it.
Callback of parent_.
Parent object whose callback cleanup_ is executed on notification.