.. index:: pair: class; EE::ObservableValue::Connection .. _doxid-class_e_e_1_1_observable_value_1_1_connection: class EE::ObservableValue::Connection ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ Move-only scoped ownership of one :ref:`ObservableValue ` observer. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Connection { public: // construction :target:`Connection`(); :target:`Connection`(const Connection&); :target:`Connection`(Connection&& other); :target:`~Connection`(); // methods Connection& :target:`operator=`(const Connection&); Connection& :target:`operator=`(Connection&& other); void :ref:`disconnect`(); :target:`operator bool`() const; }; .. _details-class_e_e_1_1_observable_value_1_1_connection: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Move-only scoped ownership of one :ref:`ObservableValue ` observer. Methods ------- .. index:: pair: function; disconnect .. _doxid-class_e_e_1_1_observable_value_1_1_connection_1ab92d321b4f5d358946714088dfa6cc80: .. ref-code-block:: cpp :class: doxyrest-title-code-block void disconnect() Disconnects the observer. Calling this more than once is safe.