![]() |
![]() |
Inheritance diagram for sigc::internal::typed_slot_rep< T_functor >:
Public Types | |
typedef typed_slot_rep<T_functor> | self |
typedef adaptor_trait< T_functor >::adaptor_type | adaptor_type |
Public Member Functions | |
typed_slot_rep (const T_functor& functor) | |
Constructs an invalid typed slot_rep object. | |
typed_slot_rep (const typed_slot_rep& cl) | |
~typed_slot_rep () | |
Static Public Member Functions | |
static void* | destroy (void* data) |
Detaches the stored functor from the other referred trackables and destroys it. | |
static void* | dup (void* data) |
Makes a deep copy of the slot_rep object. | |
Public Attributes | |
adaptor_type | functor_ |
The functor contained by this slot_rep object. |
A typed slot_rep holds a functor that can be invoked from slot::operator()(). visit_each() is used to visit the functor's targets that inherit trackable recursively and register the notification callback. Consequently the slot_rep object will be notified when some referred object is destroyed or overwritten.
typedef typed_slot_rep<T_functor> sigc::internal::typed_slot_rep<T_functor>::self |
typedef adaptor_trait<T_functor>::adaptor_type sigc::internal::typed_slot_rep<T_functor>::adaptor_type |
sigc::internal::typed_slot_rep<T_functor>::typed_slot_rep | ( | const T_functor & | functor | ) | [inline] |
Constructs an invalid typed slot_rep object.
The notification callback is registered using visit_each().
functor | The functor contained by the new slot_rep object. |
sigc::internal::typed_slot_rep<T_functor>::typed_slot_rep | ( | const typed_slot_rep<T_functor>& | cl | ) | [inline] |
sigc::internal::typed_slot_rep<T_functor>::~typed_slot_rep | ( | ) | [inline] |
static void* sigc::internal::typed_slot_rep<T_functor>::destroy | ( | void * | data | ) | [inline, static] |
Detaches the stored functor from the other referred trackables and destroys it.
This does not destroy the base slot_rep object.
static void* sigc::internal::typed_slot_rep<T_functor>::dup | ( | void * | data | ) | [inline, static] |
adaptor_type sigc::internal::typed_slot_rep<T_functor>::functor_ |
The functor contained by this slot_rep object.