NRP Core  1.4.1
Port Class Referenceabstract

Base class implementing a port in the computational graph. More...

#include <port.h>

Inheritance diagram for Port:
InputPort< T_IN, T_OUT > OutputPort< T >

Public Member Functions

 Port ()=delete
 
virtual ~Port ()=default
 
 Port (std::string id, ComputationalNode *parent)
 Constructor. More...
 
const std::string & id ()
 Returns the port 'id'. More...
 
ComputationalNodeparent () const
 Returns the port parent node. More...
 
virtual size_t subscriptionsSize ()=0
 Return the number of subscriptions of this port. More...
 

Detailed Description

Base class implementing a port in the computational graph.

Constructor & Destructor Documentation

◆ Port() [1/2]

Port::Port ( )
delete

◆ ~Port()

virtual Port::~Port ( )
virtualdefault

◆ Port() [2/2]

Port::Port ( std::string  id,
ComputationalNode parent 
)
inline

Constructor.

Member Function Documentation

◆ id()

const std::string& Port::id ( )
inline

Returns the port 'id'.

◆ parent()

ComputationalNode* Port::parent ( ) const
inline

Returns the port parent node.

◆ subscriptionsSize()

virtual size_t Port::subscriptionsSize ( )
pure virtual

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

Implemented in InputPort< T_IN, T_OUT >, and OutputPort< T >.


The documentation for this class was generated from the following file: