.. index:: pair: class; EE::UI::UIDataBind::CallbackSlot .. _doxid-class_e_e_1_1_u_i_1_1_u_i_data_bind_1_1_callback_slot: class EE::UI::UIDataBind::CallbackSlot ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ Assignment-compatible callback storage retained without copying its callable target. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CallbackSlot { public: // construction :target:`CallbackSlot`(); :target:`CallbackSlot`(const CallbackSlot&); :target:`CallbackSlot`(CallbackSlot&&); // methods CallbackSlot& :target:`operator=`(const CallbackSlot&); CallbackSlot& :target:`operator=`(CallbackSlot&&); CallbackSlot& :target:`operator=`(:ref:`Callback` callback); :target:`operator bool`() const; void :target:`operator()`(const T& value) const; std::shared_ptr<:ref:`Callback`> :target:`retain`() const; }; .. _details-class_e_e_1_1_u_i_1_1_u_i_data_bind_1_1_callback_slot: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Assignment-compatible callback storage retained without copying its callable target. Allocation, when required, happens when the callback is assigned. Notification only copies the shared handle, keeping self-destruction safe without allocating in the delivery path.