.. index:: pair: class; OutputPort .. _doxid-class_output_port: template class OutputPort ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Implementation of an output port in the computation graph. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class OutputPort: public :ref:`Port` { public: // construction :ref:`OutputPort`(const std::string& id, :ref:`ComputationalNode`* parent); // methods void :ref:`publish`(const T* msg); virtual size_t :ref:`subscriptionsSize`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods const std::string& :ref:`id`(); :ref:`ComputationalNode`* :ref:`parent`() const; virtual size_t :ref:`subscriptionsSize`() = 0; .. _details-class_output_port: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Implementation of an output port in the computation graph. It forwards msgs to subscribed ports via its 'publish' method Construction ------------ .. index:: pair: function; OutputPort .. _doxid-class_output_port_1ae78bbf100b863a32183a1c394dddbff6: .. ref-code-block:: cpp :class: doxyrest-title-code-block OutputPort(const std::string& id, :ref:`ComputationalNode`* parent) Constructor. Methods ------- .. index:: pair: function; publish .. _doxid-class_output_port_1a67f02c8a60ae4a81224cce87587f6b52: .. ref-code-block:: cpp :class: doxyrest-title-code-block void publish(const T* msg) Publish a msg to all subscribers. .. index:: pair: function; subscriptionsSize .. _doxid-class_output_port_1a51b67e80feb92845981f36eab29190c0: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual size_t subscriptionsSize() Return the number the number of ports subscribed to this port.