.. index:: pair: class; EE::Scene::EventConnectionList .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list: class EE::Scene::EventConnectionList ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ Owns a small group of event connections and disconnects them together. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class EventConnectionList { public: // construction :target:`EventConnectionList`(); :target:`EventConnectionList`(EventConnectionList&&); :target:`EventConnectionList`(const EventConnectionList&); // methods EventConnectionList& :target:`operator=`(EventConnectionList&&); EventConnectionList& :target:`operator=`(const EventConnectionList&); EventConnectionList& :ref:`add`(:ref:`EventConnection` connection); EventConnectionList& :ref:`operator+=`(:ref:`EventConnection` connection); void :ref:`clear`(); bool :ref:`empty`() const; size_t :ref:`size`() const; }; .. _details-class_e_e_1_1_scene_1_1_event_connection_list: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Owns a small group of event connections and disconnects them together. The first four connections are stored inline. Destroying or clearing the list destroys every contained :ref:`EventConnection ` and therefore disconnects all of their listeners. As with an individual :ref:`EventConnection `, the list must be manipulated on the emitters' owning thread. Methods ------- .. index:: pair: function; add .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list_1a1c3a4def1d001f0e528933f25cfa683b: .. ref-code-block:: cpp :class: doxyrest-title-code-block EventConnectionList& add(:ref:`EventConnection` connection) Adds a connection by transferring its ownership into this list. .. index:: pair: function; operator+= .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list_1a66811875498d1e0806952a9235501591: .. ref-code-block:: cpp :class: doxyrest-title-code-block EventConnectionList& operator+=(:ref:`EventConnection` connection) Equivalent to :ref:`add() `. .. index:: pair: function; clear .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list_1a5164943557df9c6398e6bc2135e792d7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void clear() Disconnects and removes all owned connections. .. index:: pair: function; empty .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list_1a06f9b470eec2d7cf328f717563a2242f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool empty() const .. rubric:: Returns: True if the list owns no connections. .. index:: pair: function; size .. _doxid-class_e_e_1_1_scene_1_1_event_connection_list_1a88cfd8b96c715d75e6615c3e86d28bad: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t size() const .. rubric:: Returns: The number of connections owned by the list.