class Port¶
Overview¶
Base class implementing a port in the computational graph. More…
#include <port.h> class Port { public: // construction Port(); Port(std::string id, ComputationalNode* parent); // methods const std::string& id(); ComputationalNode* parent() const; virtual size_t subscriptionsSize() = 0; }; // direct descendants template <class T_IN, class T_OUT> class InputPort; template <class T> class OutputPort;
Detailed Documentation¶
Base class implementing a port in the computational graph.
Methods¶
const std::string& id()
Returns the port ‘id’.
ComputationalNode* parent() const
Returns the port parent node.
virtual size_t subscriptionsSize() = 0
Return the number of subscriptions of this port.
This is the number of ports this port is subscribed to in the case of input ports or the number of ports subscribed to this port in the case of output ports