Implementation of an input port in the computation graph. More...
#include <input_port.h>
Public Member Functions | |
InputPort (const std::string &id, ComputationalNode *parent, std::function< void(const T_OUT *)> callback, std::size_t maxSubs=0) | |
Constructor. More... | |
void | subscribeTo (OutputPort< T_IN > *port) |
Subscribes this port to an OutputPort 'port'. More... | |
size_t | subscriptionsSize () override |
Return the number ports this port is subscribed to. More... | |
size_t | subscriptionsMax () |
Return the number ports this port is subscribed to. More... | |
![]() | |
Port ()=delete | |
virtual | ~Port ()=default |
Port (std::string id, ComputationalNode *parent) | |
Constructor. More... | |
const std::string & | id () |
Returns the port 'id'. More... | |
ComputationalNode * | parent () const |
Returns the port parent node. More... | |
Implementation of an input port in the computation graph.
It converts and passes incoming msgs using a callback function
|
inline |
Constructor.
|
inline |
Subscribes this port to an OutputPort 'port'.
|
inline |
Return the number ports this port is subscribed to.
|
inlineoverridevirtual |
Return the number ports this port is subscribed to.
Implements Port.