.. index:: pair: class; CommControllerSingleton .. _doxid-class_comm_controller_singleton: class CommControllerSingleton ============================= .. toctree:: :hidden: Overview ~~~~~~~~ Singleton class which stores a pointer to the :ref:`NRPGazeboCommunicationController ` being used to manage the simulation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CommControllerSingleton { public: // construction :ref:`CommControllerSingleton`(const CommControllerSingleton& other); :ref:`CommControllerSingleton`(CommControllerSingleton&& other); // methods CommControllerSingleton& :ref:`operator =` (const CommControllerSingleton& other); CommControllerSingleton&& :ref:`operator =` (CommControllerSingleton&& other); :ref:`NRPGazeboCommunicationController`& :target:`engineCommController`(); static CommControllerSingleton& :ref:`getInstance`(); static CommControllerSingleton& :ref:`resetInstance`(:ref:`NRPGazeboCommunicationController`* engineController); }; .. _details-class_comm_controller_singleton: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Singleton class which stores a pointer to the :ref:`NRPGazeboCommunicationController ` being used to manage the simulation. so other gazebo plugins can invoke it to register datapacks Construction ------------ .. index:: pair: function; CommControllerSingleton .. _doxid-class_comm_controller_singleton_1aad749146fa699fd8ae0b0ff83297e09a: .. ref-code-block:: cpp :class: doxyrest-title-code-block CommControllerSingleton(const CommControllerSingleton& other) Delete for singleton. .. index:: pair: function; CommControllerSingleton .. _doxid-class_comm_controller_singleton_1aecff92168ab6b6c73e70ed9700b57b15: .. ref-code-block:: cpp :class: doxyrest-title-code-block CommControllerSingleton(CommControllerSingleton&& other) Delete for singleton. Methods ------- .. index:: pair: function; operator= .. _doxid-class_comm_controller_singleton_1a7c855c35eae1981b7efb7612fed5cd38: .. ref-code-block:: cpp :class: doxyrest-title-code-block CommControllerSingleton& operator = (const CommControllerSingleton& other) Delete for singleton. .. index:: pair: function; operator= .. _doxid-class_comm_controller_singleton_1a601d184870992205dc592f5288aab94c: .. ref-code-block:: cpp :class: doxyrest-title-code-block CommControllerSingleton&& operator = (CommControllerSingleton&& other) Delete for singleton. .. index:: pair: function; getInstance .. _doxid-class_comm_controller_singleton_1a98419243a68f0a7998c5591c2f13171f: .. ref-code-block:: cpp :class: doxyrest-title-code-block static CommControllerSingleton& getInstance() Get singleton instance. .. rubric:: Returns: Gets instance of :ref:`CommControllerSingleton ` .. index:: pair: function; resetInstance .. _doxid-class_comm_controller_singleton_1a377266b95cf89a1c6d324e3d8d8cb4ca: .. ref-code-block:: cpp :class: doxyrest-title-code-block static CommControllerSingleton& resetInstance(:ref:`NRPGazeboCommunicationController`* engineController) Reset.